Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit

Permalink
only need one check
Browse files Browse the repository at this point in the history
  • Loading branch information
orthagonal committed Feb 19, 2019
1 parent 6427cb4 commit d72e8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const register = (server, options) => {
// if it is a wreck response it includes the entire response object, which is too big:
if (event.error.data && event.error.data.res && event.error.data.isResponseError) {
event.error.data = {
path: event.error.data.res ? event.error.data.res.req.path : request.route.path,
path: event.error.data.res.req.path,
method: event.error.data.res.req.method,
statusCode: event.error.data.res.statusCode,
statusMessage: event.error.data.res.statusMessage
Expand Down

0 comments on commit d72e8bb

Please sign in to comment.