From 2235c1349ab44ddd6cef202142378b150808a3c2 Mon Sep 17 00:00:00 2001 From: Damien Klinnert Date: Sun, 20 Jan 2013 15:57:20 +0100 Subject: [PATCH] print status code on error --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 0ffa106..5fa5750 100644 --- a/index.js +++ b/index.js @@ -15,7 +15,7 @@ var Booty = module.exports = function(options) { Booty.prototype.getConfig = function(id,dest,key,cb) { this.client.getFile('/' + id + '.enc', function(err, res){ if(err || res.statusCode !== 200) { - cb(err || new Error("Not status code 200")); + cb(err || new Error("status code " + res.statusCode)); } else { var config_file = fs.createWriteStream(dest); var decipher = crypto.createDecipher('aes-256-cfb', key);