Skip to content

Commit

Permalink
Fix new Boom. Closes #208
Browse files Browse the repository at this point in the history
  • Loading branch information
hueniverse committed Nov 3, 2017
1 parent 67af1c1 commit 2db486d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -590,7 +590,7 @@ internals.Client.prototype._shortcut = async function (method, uri, options = {}
payload
};

throw Boom(`Response Error: ${res.statusCode} ${res.statusMessage}`, { statusCode: res.statusCode, data });
throw new Boom(`Response Error: ${res.statusCode} ${res.statusMessage}`, { statusCode: res.statusCode, data });
};


Expand Down

0 comments on commit 2db486d

Please sign in to comment.