With the structured mentor list enabled, the mentor dashboard allows users to change their introduction message. This is handled through the action=growthmanagementorlist API. When the passed introduction message is too long, or when there is a different issue, the API will return an error. It looks that the mentor dashboard is unable to properly catch that error and display a meaningful error message to the user. Let's fix that.
This caused the error in T315399 and T314691.
Acceptance criteria
- When an user submits a message longer than 240 characters in the message change dialog (must be done by changing the maxlength attribute via inspect), the message change dialog displays an error message. The message will be awkard (mentions mentors' user name and user ID), but that's OK, because changing the maxlength attribute is required to trigger the API error.