From e3aafbf86005dd8aedd7f52b71de02a6805ccf3e Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Tue, 30 Dec 2014 15:50:30 -0300 Subject: [PATCH] improved error message --- js/models/Identity.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/models/Identity.js b/js/models/Identity.js index 2ad0b22da..84868bafd 100644 --- a/js/models/Identity.js +++ b/js/models/Identity.js @@ -208,7 +208,7 @@ Identity.prototype.deleteWallet = function(walletId, cb) { self.verifyChecksum(function (err, match) { if (err) return cb(err); - if (!match) return cb('The profile is out of sync'); + if (!match) return cb('The profile is out of sync. Please re-login to get the latest changes.'); var w = self.getWalletById(walletId); w.close(); @@ -377,7 +377,7 @@ Identity.prototype.setBackupNeeded = function(backupNeeded) { self.verifyChecksum(function (err, match) { if (err) return cb(err); - if (!match) return cb('The profile is out of sync'); + if (!match) return cb('The profile is out of sync. Please re-login to get the latest changes.'); self.store({ noWallets: true @@ -628,7 +628,7 @@ Identity.prototype.createWallet = function(opts, cb) { self.verifyChecksum(function (err, match) { if (err) return cb(err); - if (!match) return cb('The profile is out of sync'); + if (!match) return cb('The profile is out of sync. Please re-login to get the latest changes.'); opts = opts || {}; opts.networkName = opts.networkName || 'testnet';