Commit 358fca9
fix(frontend): show backend error detail on project upload failure (#12791)
* fix(frontend): read backend error detail on project upload failure
Backend returns error payload under `detail` (FastAPI convention), but
the upload handler was reading `message`, producing an empty alert list.
Switch to `detail` with `message` and raw-error fallbacks, typed via
AxiosError.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(frontend): simplify project upload error handler
Revert defensive AxiosError typing; keep direct `detail` read which is
sufficient for the upload error path.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(frontend): guard upload error handler against missing response
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e920e8a commit 358fca9
1 file changed
Lines changed: 4 additions & 1 deletion
File tree
- src/frontend/src/components/core/folderSidebarComponent/components/sideBarFolderButtons
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
| |||
0 commit comments