Repository navigation
Commit 8dab542
committed
fix: keep backend error detail out of 5xx response bodies
RespondWithError echoed the underlying error into the JSON body for
every status code, so 500s exposed backend internals such as database
connection errors. 5xx bodies now carry only the generic message; the
underlying error stays in the server log.
Signed-off-by: QuentinBisson <[email protected]>1 parent ff43b38 commit 8dab542
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
0 commit comments