Commit 6b79055
committed
[Bug Fix] Dispatch exceptions through the router so 500s aren't masked as 404
config.exceptions_app pointed at a lambda that always rendered the
not_found action, so every unhandled error (including 500s such as a
raising view) surfaced as a 404. That masked the DropdownMenu render
error behind a misleading 'not found' page.
Point exceptions_app at the router instead; the /404 and /500 routes
already exist, so the response status now matches the actual error and
ErrorsController#internal_server_error is finally reachable.1 parent d5dcb89 commit 6b79055
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
0 commit comments