Permalink
Browse files

print status code on error

  • Loading branch information...
1 parent ea69ed8 commit 2235c1349ab44ddd6cef202142378b150808a3c2 @damienklinnert damienklinnert committed Jan 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -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);

0 comments on commit 2235c13

Please sign in to comment.