Closed MoshiBar closed 9 months ago
This is an error that gets returned by the router and not the software as the add endpoint uses a pattern check for numbers and normal characters (including underscores) provided to the router to check if the request parameter is valid if it has an invalid character it will throw an invalid parameter error which triggers this error.
tl:dr
This is intended and not a bug and no it won't be changed as it exactly explains what happened
💡 Summary
when creating an emoji, or editing an existing emoji, if a name with an invalid character is used, an unhelpful error is shown![image](https://github.com/transfem-org/Sharkey/assets/25570708/679b621d-888f-4cf8-98b0-d8b473ffbb3f)
🥰 Expected Behavior
message should be helpful, maybe give an error message saying which characters are unable to be used
🤬 Actual Behavior
an unhelpful error message is shown, as described above
📝 Steps to Reproduce
💻 Frontend Environment
🛰 Backend Environment (for server admin)