Commit 3a7da9d
fix: address greptile review — network errors and status code handling
- Add !error.request check so Axios network errors (connection refused,
server down) still show notifications — only suppress true JS runtime
errors that have neither .response nor .request
- Use err.to_response() for VisitranBackendBaseException to preserve
the exception's own HTTP status code (403, 404, etc.) instead of
hardcoding 400
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8674a5a commit 3a7da9d
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments