Permalink
Browse files

changed argument order in the error callback

  • Loading branch information...
1 parent 32b796b commit 24baf433e4c91040dcc6b711bfcc006e0134ba6f @pdfcrowd committed Apr 28, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/pdfcrowd.js
View
@@ -92,13 +92,13 @@ var convertInternal = function(that, src, options, endpoint) {
err.push(chunk.toString());
});
res.on('end', function() {
- that.callbacks['error'](res.statusCode, err.join(''));
+ that.callbacks['error'](err.join(''), res.statusCode);
});
}
});
req.on('error', function(res) {
- that.callbacks['error'](res.statusCode, res.toString());
+ that.callbacks['error'](res.toString(), res.statusCode);
});
req.write(postData);

0 comments on commit 24baf43

Please sign in to comment.