mirror of
https://github.com/archtechx/jobpipeline.git
synced 2025-12-12 06:44:03 +00:00
Throw exception instead of just silently logging an error
This commit is contained in:
parent
cd2c5c39ad
commit
57f4ebf555
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue