Navigation Menu

Skip to content

Commit

Permalink
[fix] define statusCode
Browse files Browse the repository at this point in the history
  • Loading branch information
Swaagie committed Mar 6, 2014
1 parent 7d257fe commit 58cb50d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion node.js/lib/client/client.js
Expand Up @@ -285,7 +285,9 @@ Client.prototype.upload = function (options, callback) {
// use case of the api so we repeat some code here
//
if (failCodes[res.statusCode]) {
var error = new Error('Nodejitsu Error (' + statusCode + '): ' + failCodes[statusCode]);
var statusCode = res.statusCode,
error = new Error('Nodejitsu Error (' + statusCode + '): ' + failCodes[statusCode]);

error.statusCode = statusCode;
error.result = '';

Expand Down
2 changes: 1 addition & 1 deletion node.js/package.json
@@ -1,6 +1,6 @@
{
"name": "nodejitsu-api",
"version": "0.6.1",
"version": "0.6.2",
"description": "nodejitsu API client wrapper",
"keywords": ["nodejitsu", "nodejitsu-api"],
"homepage": "http://github.com/nodejitsu/nodejitsu-api",
Expand Down

0 comments on commit 58cb50d

Please sign in to comment.