Skip to content

Commit

Permalink
Fix error handling based on discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
Kipjr committed Jan 27, 2024
1 parent 15ad0f7 commit bb246d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function register(): void
switch ($exception->getStatusCode())
{
case 404:
return redirect(route('home'));
return $this->renderHttpException($exception);
break;
case '500':
return redirect(route('home'));
Expand Down

0 comments on commit bb246d4

Please sign in to comment.