mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-09 06:47:51 +00:00
Fix "HTTP 500 on not found" bug #4290
This commit is contained in:
parent
ecf99fa0ed
commit
9ba7d1e6c5
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ class Handler extends ExceptionHandler
|
|||
*/
|
||||
protected function renderApiException(Throwable $e): JsonResponse
|
||||
{
|
||||
$code = 500;
|
||||
$code = $e->getCode() === 0 ? 500 : $e->getCode();
|
||||
$headers = [];
|
||||
|
||||
if ($e instanceof HttpException) {
|
||||
|
|
Loading…
Add table
Reference in a new issue