Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Throw an X::OS from Proc::Async if the external command could not be …
…launched
  • Loading branch information
moritz committed Jan 25, 2015
1 parent a1c8b97 commit 0c524e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Proc/Async.pm
Expand Up @@ -175,7 +175,7 @@ my class Proc::Async {
$!exit_promise.keep(Proc::Status.new(:exit(status)))
});
nqp::bindkey($callbacks, 'error', -> Mu \err {
$!exit_promise.break(err);
$!exit_promise.break(X::OS.new(os-error => err));
});

@!promises.push(
Expand Down

0 comments on commit 0c524e3

Please sign in to comment.