Browse files

Change storageRequest() to also return response on error

  • Loading branch information...
1 parent 843c069 commit 491645856e3f12197cbca017add5fb4b5d20a53c @rossj committed Feb 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rackit.js
View
2 lib/rackit.js
@@ -198,7 +198,7 @@ Rackit.prototype._cloudRequest = function (options, cb) {
// Problem
if (!o1.hGoodStatuses.hasOwnProperty(res.statusCode)) {
o1._log('request failed');
- return cb(new Error('Error code ' + res.statusCode));
+ return cb(new Error('Error code ' + res.statusCode), res);
}
// Everything went fine

0 comments on commit 4916458

Please sign in to comment.