Skip to content

Bug: Changing role error is not specific to backend error #1932

Closed
@Emyrk

Description

@Emyrk

Steps to Reproduce

  1. Go to Users page
  2. Attempt to change your own roles
  3. Error is: Error on update the user roles

Expected

The backend payload is {"message":"You cannot change your own roles."}. We should elevate a more detailed error in the toast error.

Actual

Error is always the same error regardless of backend text.

Logs

Screenshot

Screenshot from 2022-05-31 15-15-55

Notes

Our frontend does constant errors in a lot of places, we should elevate backend text.

Metadata

Metadata

Assignees

Labels

siteArea: frontend dashboard

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions