mirror of
https://github.com/danog/parallel.git
synced 2024-11-26 20:34:40 +01:00
Remove catch of ChannelException
This catch block may hide errors that the user makes. If the parent died, another exception will be generated and caught below when trying to send the ExitFailure object.
This commit is contained in:
parent
fd6c531d87
commit
3c0baa4e43
@ -90,9 +90,6 @@ Loop::run(function () use ($argc, $argv) {
|
||||
}
|
||||
|
||||
$result = new Sync\ExitSuccess(yield call($callable, $channel));
|
||||
} catch (Sync\ChannelException $exception) {
|
||||
\trigger_error(E_USER_ERROR, "Communication with the parent failed");
|
||||
exit(1);
|
||||
} catch (\Throwable $exception) {
|
||||
$result = new Sync\ExitFailure($exception);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user