added notification for wallet storage error
This commit is contained in:
parent
b6583c7405
commit
af721f697e
2 changed files with 10 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue