Skip to content

Commit

Permalink
Merge pull request #574 from jolicode/fix-exception
Browse files Browse the repository at this point in the history
Fix exception handle
  • Loading branch information
pyrech authored Nov 15, 2024
2 parents 0813a7c + 60508ec commit bf1a8b6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,12 @@ protected function getDefaultInputDefinition(): InputDefinition
return $definition;
}

private function enhanceException(\Throwable $exception): \Throwable
private function enhanceException(\Throwable $exception): void
{
if ($exception instanceof \Error) {
return;
}

$castorDirs = [
\dirname(__DIR__, 1),
\dirname(__DIR__, 2) . \DIRECTORY_SEPARATOR . 'vendor',
Expand All @@ -148,8 +152,6 @@ private function enhanceException(\Throwable $exception): \Throwable

break;
}

return $exception;
}

private function getLogo(): string
Expand Down

0 comments on commit bf1a8b6

Please sign in to comment.