Skip to content

Commit

Permalink
Merge pull request #427 from vshvoruk/error-handling-fix-laravel6
Browse files Browse the repository at this point in the history
Fix ErrorHandlingUtils for Laravel 6
  • Loading branch information
shalvah authored Feb 7, 2022
2 parents 3321ed4 + fda6c19 commit f9790e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tools/ErrorHandlingUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static function dumpException(\Throwable $e): void
$output = new ConsoleOutput(OutputInterface::VERBOSITY_VERBOSE);
try {
$handler = new \NunoMaduro\Collision\Handler(new \NunoMaduro\Collision\Writer(null, $output));
} catch (\Exception $e) {
} catch (\Throwable $error) {
// Version 3 used a different API
// todo remove when Laravel 7 is minimum supported
$handler = new \NunoMaduro\Collision\Handler(new \NunoMaduro\Collision\Writer($output));
Expand Down

0 comments on commit f9790e9

Please sign in to comment.