mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 09:53:27 +08:00
Merge pull request #1178 from flarum/Luceos-patch-1
Update HandleErrors.php
This commit is contained in:
commit
b47fbf9732
@ -60,11 +60,11 @@ class HandleErrors
|
||||
try {
|
||||
return $out($request, $response);
|
||||
} catch (Exception $e) {
|
||||
return $this->formatException($e);
|
||||
return $this->formatException($e, $request, $response, $out);
|
||||
}
|
||||
}
|
||||
|
||||
protected function formatException(Exception $error)
|
||||
protected function formatException(Exception $error, Request $request, Response $response, callable $out = null)
|
||||
{
|
||||
$status = 500;
|
||||
$errorCode = $error->getCode();
|
||||
|
Loading…
x
Reference in New Issue
Block a user