My Wiki has e-mail authentication ($wgEmailConfirmToEdit = true;) set to help prevent vandalism. Some users realized that they are unable to upload avatars before they confirm their e-mail because this error message appears: https://jojowiki.com/Special:WikiForum/Avatar_Errors
This makes sense since I don't think they're allowed to upload files before they confirm their e-mail. Is there a way to display a cleaner message like "Please confirm your e-mail address before uploading avatar" instead of the backtrace? Thanks.