Skip to content

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

@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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy