Merge pull request #2191 from isocolsky/send_error

Give feedback when email cannot be verified (as per Insight)
This commit is contained in:
Matias Alejo Garcia 2014-12-18 19:18:46 -03:00
commit f886e36481
5 changed files with 9 additions and 7 deletions

View file

@ -381,12 +381,9 @@ Identity.prototype.store = function(opts, cb) {
var storeFunction = opts.failIfExists ? self.storage.createItem : self.storage.setItem;
storeFunction.call(self.storage, this.getId(), this.toObj(), function(err) {
if (err) {
return cb(err);
}
if (err) return cb(err);
if (opts.noWallets)
return cb();
if (opts.noWallets) return cb();
async.each(self.getWallets(), function(wallet, in_cb) {
self.storeWallet(wallet, in_cb);