We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b88554 commit 2f44389Copy full SHA for 2f44389
src/Illuminate/Bus/Batch.php
@@ -427,9 +427,15 @@ public function delete()
427
*/
428
protected function invokeHandlerCallback($handler, Batch $batch, Throwable $e = null)
429
{
430
- return $handler instanceof SerializableClosure
431
- ? $handler->__invoke($batch, $e)
432
- : call_user_func($handler, $batch, $e);
+ try {
+ return $handler instanceof SerializableClosure
+ ? $handler->__invoke($batch, $e)
433
+ : call_user_func($handler, $batch, $e);
434
+ } catch (Throwable $e) {
435
+ if (function_exists('report')) {
436
+ report($e);
437
+ }
438
439
}
440
441
/**
0 commit comments