Skip to content

Commit

Permalink
Fix property name for ('status' => 'statusCode') in virtual request h…
Browse files Browse the repository at this point in the history
…elper.
  • Loading branch information
mikermcneil committed Aug 18, 2016
1 parent f6e8d32 commit 525c7c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ module.exports = function request( /* address, body, cb */ ) {
// If status code is indicative of an error, send the
// response body or status code as the first error argument.
if (clientRes.statusCode < 200 || clientRes.statusCode >= 400) {
var error = new Error(util.inspect(clientRes.body || clientRes.status));
var error = new Error(util.inspect(clientRes.body || clientRes.statusCode));
if (clientRes.body) {error.body = clientRes.body;}
error.status = clientRes.statusCode;
return cb(error);
Expand Down

0 comments on commit 525c7c5

Please sign in to comment.