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
{{ message }}
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.
Hey @Rahul-Sagore, so now whenever the status is not 200, server would send a JSON object which would have a message string. That has to be displayed instead of hard coded messages on the frontend.
@Rahul-Sagore I see that still the message displayed after Validate API is hardcoded. We need to display the message that the API returns. For e.g. validate API returns that You have already completed the quiz but frontend displays You are not authorized.
Return appropriate error to the frontend with the status code instead of log.Fatal in case you can't Decode/Encode JSON and in other cases.
The text was updated successfully, but these errors were encountered: