Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Better error handling #9

Merged
merged 4 commits into from Jan 21, 2018
Merged

Better error handling #9

merged 4 commits into from Jan 21, 2018

Conversation

vmx
Copy link
Member

@vmx vmx commented Jan 18, 2018

This PR improves error handling as well as the corresponding tests.

@vmx vmx requested a review from daviddias January 18, 2018 12:59
During (de)serialization or returning the CID there might be
errors. Return those properly instead of throwing random
exceptions.
This way it's easier to find tests to the corresponding functions.
@coveralls
Copy link

Coverage Status

Coverage increased (+4.0%) to 100.0% when pulling 432c771 on more-error-tests into 4fdaf5d on master.

It's more idiomatic to use `deep.equal()` for buffers.
@coveralls
Copy link

Coverage Status

Coverage increased (+4.0%) to 100.0% when pulling 3a462c4 on more-error-tests into 4fdaf5d on master.

@vmx
Copy link
Member Author

vmx commented Jan 21, 2018

For everyone reviewing: It might be easier to review the individual commits as the last one is a refactoring.

Copy link
Member

@daviddias daviddias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@daviddias
Copy link
Member

@vmx looking good! Do you happen to have a demo of js-ipfs traversing through Bitcoin blocks today?

@daviddias daviddias merged commit f32a154 into master Jan 21, 2018
@daviddias daviddias deleted the more-error-tests branch January 21, 2018 20:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants