mattermost/mattermost-plugin-mscalendar

Any user-facing error messages should be user-friendly

Aperta

#189 aperta il 7 set 2020

 (0 commenti) (0 reazioni) (0 assegnatari)Go (35 fork)auto 404
Difficulty/2:MediumGood First IssueHacktoberfestHelp WantedTech/GoType/EnhancementUp For Grabs

Metriche repository

Star
 (22 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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"}}}

image

Guida contributor