mattermost/mattermost-plugin-mscalendar

Any user-facing error messages should be user-friendly

オープン

#189 opened on 2020/09/07

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Go (35 件のフォーク)auto 404
Difficulty/2:MediumGood First IssueHacktoberfestHelp WantedTech/GoType/EnhancementUp For Grabs

Repository metrics

Stars
 (22 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド