Skip to content
Permalink
Browse files

[fix] define statusCode

  • Loading branch information...
Swaagie committed Mar 6, 2014
1 parent 7d257fe commit 58cb50dc1abfa5afe0c800b9dee69f79caf40079
Showing with 4 additions and 2 deletions.
  1. +3 −1 node.js/lib/client/client.js
  2. +1 −1 node.js/package.json
@@ -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 = '';

@@ -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",

0 comments on commit 58cb50d

Please sign in to comment.
You can’t perform that action at this time.