Skip to content
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

update: Throw error if there is one #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OliverJAsh
Copy link
Contributor

Beforehand, if there was no entity but there was an error, that error would not be propagated (via the callback).

Beforehand, if there was no entity but there was an error, that error would not be propagated (via the callback).
@serby
Copy link
Owner

serby commented Nov 12, 2013

@serby
Copy link
Owner

serby commented Nov 12, 2013

... so it might end up passing back false or undefined. I always assume error === null on a successful result.

@serby
Copy link
Owner

serby commented Nov 12, 2013

I agree with the first block though.

@OliverJAsh
Copy link
Contributor Author

Hmm, it could be falsy, yes… not sure what you want to do about that?

@serby
Copy link
Owner

serby commented Nov 12, 2013

I would ignore it and normalise the output as null, so that internals are not leaked out in a success state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants