1
0
mirror of https://github.com/flarum/core.git synced 2025-07-21 08:41:17 +02:00

Determine error view and message based on type

...not based on status code.

To simplify this logic, we now use the same error "type" both when
routes are not found and specific models are not found. One exception is
ours, one is from Laravel, but for the purposes of error handling they
should be treated the same.

Fixes flarum/core#1641.
This commit is contained in:
Franz Liedke
2019-08-14 19:43:36 +02:00
parent 40a8068dea
commit 919ebfcc33
5 changed files with 15 additions and 13 deletions

View File

@@ -18,6 +18,6 @@ class RouteNotFoundException extends Exception implements KnownError
{
public function getType(): string
{
return 'route_not_found';
return 'not_found';
}
}