Skip to content

Commit

Permalink
Merge pull request #80 from utopia-php/error-handler-message
Browse files Browse the repository at this point in the history
fix: error message in group error handlers
  • Loading branch information
eldadfux authored Oct 25, 2022
2 parents 38b6a4e + b2a7286 commit 847cfd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ public function execute(Route $route, Request $request): static
$arguments = $this->getArguments($error, $values, $request->getParams());
\call_user_func_array($error->getAction(), $arguments);
} catch (\Throwable $e) {
throw new Exception('Error handler had an error', 0, $e);
throw new Exception('Error handler had an error: ' . $e->getMessage(), 500, $e);
}
}
}
Expand Down

0 comments on commit 847cfd4

Please sign in to comment.