Commit 02b33c2
committed
Rescue
Rescuing from Exception would also catch system-level exceptions, which would likely be taking things too far (e.g. system-level errors like `Interrupt` and
`SystemExit`). StandardError covers all application-level errors while still ensuring clients get consistent JSON responses.StandardError in v2 BaseApiController1 parent 062e9c4 commit 02b33c2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments