mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2026-11-07 07:01:47 +09:00
Improved handling of 404 errors
Instead of shipping an `error/404.html` template, added a `@ControllerAdvice` that handles `DbAdminNotFoundException`. This way, we only show our error page for exceptions that are thrown inside our controller's methods, and don't interfere with the 404 settings for the other routes defined by the user.
This commit is contained in:
1 parent
0b1b394144
commit
9bd896e5c7
5 files changed
+34
-5
No files matched your search
File renamed without changes.
Reference in new issue
Block a user