Navigation Menu

Skip to content

Commit

Permalink
print status code on error
Browse files Browse the repository at this point in the history
  • Loading branch information
damienklinnert committed Jan 20, 2013
1 parent ea69ed8 commit 2235c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -15,7 +15,7 @@ var Booty = module.exports = function(options) {
Booty.prototype.getConfig = function(id,dest,key,cb) { Booty.prototype.getConfig = function(id,dest,key,cb) {
this.client.getFile('/' + id + '.enc', function(err, res){ this.client.getFile('/' + id + '.enc', function(err, res){
if(err || res.statusCode !== 200) { if(err || res.statusCode !== 200) {
cb(err || new Error("Not status code 200")); cb(err || new Error("status code " + res.statusCode));
} else { } else {
var config_file = fs.createWriteStream(dest); var config_file = fs.createWriteStream(dest);
var decipher = crypto.createDecipher('aes-256-cfb', key); var decipher = crypto.createDecipher('aes-256-cfb', key);
Expand Down

0 comments on commit 2235c13

Please sign in to comment.