added notification for wallet storage error

This commit is contained in:
Ivan Socolsky 2014-12-04 15:55:50 -03:00
commit af721f697e
2 changed files with 10 additions and 0 deletions

View file

@ -248,6 +248,12 @@ Identity.prototype.storeWallet = function(wallet, cb) {
if (err) {
log.error('Wallet:' + wallet.getName() + ' couldnt be stored:', err);
log.error('Wallet:' + wallet.getName() + ' Size:', JSON.stringify(wallet.sizes()));
if (err.match('OVERQUOTA')) {
self.emitAndKeepAlive('walletStorageError', w.getId(), 'Storage limits on remote server exceeded');
} else {
self.emitAndKeepAlive('walletStorageError', w.getId(), err);
}
}
if (cb)
return cb(err);