1
0
Fork 0
mirror of https://github.com/archtechx/jobpipeline.git synced 2025-12-12 08:24:04 +00:00

Throw exception instead of just silently logging an error

This commit is contained in:
Samuel Štancl 2022-03-30 17:11:53 +02:00 committed by GitHub
parent cd2c5c39ad
commit 57f4ebf555
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,7 @@ class JobPipeline implements ShouldQueue
if (method_exists(get_class($job[0]), 'failed')) {
call_user_func_array([$job[0], 'failed'], [$exception]);
} else {
Log::error($exception);
throw $exception;
}
break;