1
0
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:
Aaron Piotrowski 2018-10-23 21:28:24 -05:00
parent fd6c531d87
commit 3c0baa4e43
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -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);
}