Commit 5408de7
authored
fix(api): improve error message for file not found in GetAgentSkillFile (#500)
Previously, when a skill file was not found, the API returned:
- HTTP 404 status code
- Generic "database error" message (from serializer.DBErr)
This was confusing because:
1. The user didn't know if it was a database issue or file missing
2. "database error" sounds like a server-side problem
Now it returns:
- HTTP 404 status code
- Clear "file not found" message
This helps users understand that the requested file simply doesn't exist
in the skill, rather than encountering a database error.1 parent d5973b0 commit 5408de7
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
0 commit comments