-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Description
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
- Go to Administration → Custom Emojis.
- Create a custom emoji named
cat. - Try to create another emoji with the same name
cat. - 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.