Mattermost-plugin-github: Properly wrap errors

Created on 2 May 2020  路  6Comments  路  Source: mattermost/mattermost-plugin-github

Generally errors should be wrapped using Wrap and Wrapf. This ticket is about going trough the code base and adding error wrapping everywhere where it's appropriate.

_Originally posted by @bakurits in https://github.com/mattermost/mattermost-plugin-github/pull/252_

Medium Good First Issue Help Wanted TecGo TypEnhancement

Most helpful comment

I would like to work on that

All 6 comments

I would like to work on that

Thanks @dbejanishvili. Let me know, if you have any questions.

https://github.com/mattermost/mattermost-plugin-github/blob/119ff1807a40eca316e5c1644589f056baa71936/server/subscriptions.go#L235-L242

It seems that the error returned from KVSet is ignored here, is this intentional? If not, should I fix it?

No, that error should not be ignore. Please fix it.

You have eagle eyes @bakurits! That is correct, but I hope #260 gets merged before my PR and I can easily resolve the merge conflict. :wink:

Was this page helpful?
0 / 5 - 0 ratings