-
-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Currently, Synapse-Admin shows generic errors when an error is returned from Synapse API. But Synapse Admin API uses error format from the Matrix specification.
Please add a global error handler, that will attempt to parse the Matrix error from the response, and if failed, just return the whole response as an error message.
The format should be the following:
<errcode> (<http status code>): <error>, example: M_MISSING_PARAM (400): parameter is missing
Example: invalid credentials
- Attempt to login with invalid login/password
- See error
Authentication failed, please retry - Actual error returned from API:
{"errcode":"M_FORBIDDEN","error":"Invalid username or password"}
It should show M_FORBIDDEN (403): Invalid username or password
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request