Skip to content

Duplicate custom emoji creation does not display error message #39402

@VKS0104

Description

@VKS0104

Description

When creating a custom emoji with a name or alias that is already in use, the UI does not show an error message. The action appears to silently fail, leaving the administrator confused about why the emoji was not saved.

Steps to Reproduce

  1. Go to Administration → Custom Emojis.
  2. Create a custom emoji named cat.
  3. Try to create another emoji with the same name cat.
  4. Upload any image and click Save.

Expected Behavior

A red toast message should appear:

The modal should remain open so the administrator can correct the input.

Actual Behavior

No error feedback is displayed. The modal may close or simply do nothing, with no indication of why the creation failed.

Technical Findings

The emoji-custom.create endpoint catches the Meteor.Error but returns a generic failure() response, which removes the specific error information.

Additionally, the client-side useEndpointUploadMutation hook only displays the HTTP status by default and does not extract the detailed error message from the response body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions