Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

fix: Fix error handling logic for missing res param #31

Merged
merged 1 commit into from
Dec 19, 2018

Conversation

bengourley
Copy link
Contributor

If a synchronous error happens, or an async error before there is an HTTP response object, the
existing logic would throw an error "Cannot read property 'statusCode' of undefined". This fix only
accesses the res property if it exists.

If a synchronous error happens, or an async error before there is an HTTP response object, the
existing logic would throw an error "Cannot read property 'statusCode' of undefined". This fix only
accesses the res property if it exists.
@bengourley bengourley merged commit 2989f61 into master Dec 19, 2018
@bengourley bengourley deleted the handle-err-no-res branch December 19, 2018 16:51
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

2 participants