Skip to content

fix: show correct error messages for login API failures (#783)#981

Open
aaniya22 wants to merge 6 commits into
SdSarthak:mainfrom
aaniya22:fix/login-error-messages-783
Open

fix: show correct error messages for login API failures (#783)#981
aaniya22 wants to merge 6 commits into
SdSarthak:mainfrom
aaniya22:fix/login-error-messages-783

Conversation

@aaniya22

@aaniya22 aaniya22 commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #783

 ## Changes
 - 401/403 → "Invalid email or password."
 - 500+    → "Server error, please try again later."
 - No response → "Unable to connect to server."
 - Other → falls back to response detail message

 ## Root Cause
 Misplaced closing brace made the catch/finally blocks unreachable dead code.

aaniya22 added 6 commits June 5, 2026 20:34
- 401/403 → 'Invalid email or password.'
- 500+    → 'Server error, please try again later.'
- No response → 'Unable to connect to server.'
- Other → falls back to response detail message

Root cause: misplaced closing brace made catch/finally unreachable dead code.
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.

Frontend shows misleading credential error message for server-side 500 failures

1 participant