Skip to content

Commit

Permalink
Allow report methods to be defined on exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke committed Aug 28, 2019
1 parent 877513f commit f00a74e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ public function report(Exception $e)
return;
}

if (method_exists($e, 'report')) {
return $e->report();
}

try {
$logger = app('Psr\Log\LoggerInterface');
} catch (Exception $ex) {
Expand Down

0 comments on commit f00a74e

Please sign in to comment.