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

Handle and report invalid notify(err) argument. Fixes #110. #114

Merged
merged 2 commits into from
Sep 7, 2017

Conversation

bengourley
Copy link
Contributor

@bengourley bengourley commented Sep 6, 2017

notify(err…) now catches and reports the case where err=null|undefined|0|true|false.

An error-level log is printed and Error is constructed and sent to Bugsnag with the offending parameter. All of the arguments are captured and sent in the report's metadata too, to help provide context for when this happens.

@bengourley
Copy link
Contributor Author

Some examples of this in use:

Log output

image

Dashboard

image

@bengourley bengourley force-pushed the handle-bad-input branch 3 times, most recently from cef7f12 to c539c53 Compare September 6, 2017 13:42
notify(err…) now catches and reports the case where err=null|undefined|0|true|false.

An error-level log is printed and Error is constructed and sent to Bugsnag
with the offending parameter. All of the arguments are captured and sent
in the report's metadata too, to help provide context for when this happens.
@kattrali kattrali merged commit 5951144 into master Sep 7, 2017
@kattrali kattrali deleted the handle-bad-input branch September 7, 2017 06:44
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.

2 participants