You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
When an error occurs, the toast notifications display raw JavaScript objects (e.g., Error: {message: 'Invalid request', code: 400}) instead of concise and user-friendly error messages. This makes it difficult for users to understand the issue and take corrective action.
Expected Behavior
Toast notifications should display clean, user-readable error messages such as:
"Invalid request. Please check your input."
"Failed to load data. Try again later."
Steps to Reproduce
Perform an action that triggers an error (Login
).
Observe the error toast notification displayed on the screen.
Note that the toast contains the raw JavaScript object instead of a proper message.
Proposed Solution
Parse the error response and display only the relevant message (e.g., error.message or a predefined friendly message).
Use fallback messages for unknown or unhandled errors (e.g., "An unexpected error occurred. Please try again.").
The text was updated successfully, but these errors were encountered:
Problem
When an error occurs, the toast notifications display raw JavaScript objects (e.g., Error: {message: 'Invalid request', code: 400}) instead of concise and user-friendly error messages. This makes it difficult for users to understand the issue and take corrective action.
Expected Behavior
Toast notifications should display clean, user-readable error messages such as:
"Invalid request. Please check your input."
"Failed to load data. Try again later."
Steps to Reproduce
Perform an action that triggers an error (Login
).
Observe the error toast notification displayed on the screen.
Note that the toast contains the raw JavaScript object instead of a proper message.
Proposed Solution
Parse the error response and display only the relevant message (e.g., error.message or a predefined friendly message).
Use fallback messages for unknown or unhandled errors (e.g., "An unexpected error occurred. Please try again.").
The text was updated successfully, but these errors were encountered: