-
Notifications
You must be signed in to change notification settings - Fork 225
Add section on "Error Codes" to CONTRIBUTING_JS.md #445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
add section on error codes Ref. ipfs/js-ipfs#2547 (comment)
Co-Authored-By: Teri Chadbourne <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
License: MIT Signed-off-by: Marcin Rataj <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated example in 29f16bb, please take a final look, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, I like this, might be worth saying something about the convention for codes (uppercase and starting with "ERR_") to avoid any more bikeshedding in the future :D
I also want @hugomrdias and @achingbrain's approval on this before merging so we're all aligned going forward. 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to get this stuff written down :)
Co-Authored-By: Teri Chadbourne <[email protected]>
Thanks everyone! |
This adds section on defining and reusing Error Codes, as requested in ipfs/js-ipfs#2547 (comment)
Used
Errors
frominterface-datastore
as an example.