Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/iControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ iControl.prototype._request = function(opts, cb) {
var msg;

if (res.statusCode === 404) {
msg = '404: Not found';
msg = '404: Not found for: ' + res.request.uri.href;
}

else {
Expand All @@ -112,7 +112,7 @@ iControl.prototype._request = function(opts, cb) {

return cb(msg, false);
}

// If retrieving via GET, handle pagination
if (this.method === 'GET') {

Expand All @@ -126,7 +126,7 @@ iControl.prototype._request = function(opts, cb) {
return cb(false, body);
}
}

// For POST/PUT/DELETE, return body
else {
return cb(false, body);
Expand Down