add err to log

This commit is contained in:
Matias Alejo Garcia 2014-10-31 16:36:12 -03:00
commit ed4d08f48b

View file

@ -195,7 +195,7 @@ Identity.prototype.storeWallet = function(wallet, cb) {
this.storage.setItem(key, val, function(err) { this.storage.setItem(key, val, function(err) {
if (err) { if (err) {
log.debug('Wallet:' + wallet.getName() + ' couldnt be stored'); log.debug('Wallet:' + wallet.getName() + ' couldnt be stored:', err);
} }
if (cb) if (cb)
return cb(err); return cb(err);