mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
Update HandleErrors.php
@franzliedke forgot to make variables available to the method, just triggered this but got a warning that all three variables are undefined.
This commit is contained in:
parent
bb1c655c90
commit
9836ff6c54
|
@ -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…
Reference in New Issue
Block a user