Any user-facing error messages should be user-friendly
#189 opened on Sep 7, 2020
Repository metrics
- Stars
- (22 stars)
- PR merge metrics
- (PR metrics pending)
Description
Often times we show raw errors to the user, sometimes even in JSON form. We should make it so any user-facing error that is not specially crafted to be something of the effect "An error occurred, please contact your Mattermost administrator."
An error like this is returned to the UI when creating a subscription fails:
There has been a problem setting the property, err=msgraph CreateMySubscription: 401 Unauthorized: {"error":{"code":"InvalidAuthenticationToken","message":"CompactToken parsing failed with error code: 80049217","innerError":{"date":"2020-09-07T06:33:50","request-id":"32c9434c-3c46-4e29-9b68-478604c75636"}}}
