=head1 DESCRIPTION
-Maemian::Command is a thin wrapper around IPC::Run, that catches exception
-and implements a useful default behaviour for input and output redirection.
+Maemian::Command is a thin wrapper around IPC::Run, that catches exceptions
+and implements useful default behaviour for input and output redirection.
Maemian::Command provides a function spawn() which is a wrapper
around IPC::Run::run() resp. IPC::Run::start() (depending on whether a
and !$opts->{success}) {
require Util;
if ($opts->{description}) {
- Util::fail("$opts->{description} failed with error code ".
- $opts->{harness}->result);
+ Util::fail("$opts->{description} failed with error code ".
+ $opts->{harness}->result);
} elsif (@cmds == 1) {
- Util::fail("$cmds[0][0] failed with error code ".
- $opts->{harness}->result);
+ Util::fail("$cmds[0][0] failed with error code ".
+ $opts->{harness}->result);
} else {
- Util::fail("command failed with error code ".
+ Util::fail("command failed with error code ".
$opts->{harness}->result);
}
}
Util::fail("$opts->{description} failed with error code ".
$opts->{harness}->result);
} else {
- Util::fail("command failed with error code ".
+ Util::fail("command failed with error code ".
$opts->{harness}->result);
}
}