Skip to content

fix: include the server error message in failed API requests - #65

Open
Gourav224 wants to merge 1 commit into
Dokploy:mainfrom
Gourav224:fix/surface-api-error-message
Open

Gourav224 wants to merge 1 commit into
Dokploy:mainfrom
Gourav224:fix/surface-api-error-message

Conversation

@Gourav224

Copy link
Copy Markdown

Failed requests only showed axios' generic "Request failed with status code 400", dropping the reason the server sent. The client now appends the message from the tRPC error body (when present), so errors read e.g. Request failed with status code 400: Invalid input.

🤖 Generated with Claude Code

Failures only showed axios' generic "Request failed with status code 400".
Append the message from the tRPC error body when present.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant