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

Set Unknown Error as Default for Response Ending Rather than Null #84

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

Conversation

cbeanLeadr
Copy link

Currently, it's possible for requests that end to send a null error on the error callback if data isn't written to the error as intended. This can cause consumers of the error callback to get tripped up if they're expecting an Error and receive null instead. To mitigate this, we should be returning an unknown Error instead as a fallback. Without this, null can cause system errors and crashes if not handled properly.

@cbeanLeadr
Copy link
Author

Hi @brettlangdon, following up here to get some eyes on this 👍

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.

1 participant