Skip to content

update: Throw error if there is one#11

Open
OliverJAsh wants to merge 1 commit into
serby:masterfrom
OliverJAsh:patch-2
Open

update: Throw error if there is one#11
OliverJAsh wants to merge 1 commit into
serby:masterfrom
OliverJAsh:patch-2

Conversation

@OliverJAsh

Copy link
Copy Markdown
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

serby commented Nov 12, 2013

Copy link
Copy Markdown
Owner

@serby

serby commented Nov 12, 2013

Copy link
Copy Markdown
Owner

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

@serby

serby commented Nov 12, 2013

Copy link
Copy Markdown
Owner

I agree with the first block though.

@OliverJAsh

Copy link
Copy Markdown
Contributor Author

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

@serby

serby commented Nov 12, 2013

Copy link
Copy Markdown
Owner

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