Merge pull request #1460 from cmgustavo/bug/01-import

Trying to import a wallet with a wrong password
This commit is contained in:
Matias Alejo Garcia 2014-09-25 07:51:23 -03:00
commit c360fbb926
3 changed files with 8 additions and 8 deletions

View file

@ -136,10 +136,7 @@ WalletFactory.prototype.fromEncryptedObj = function(base64, passphrase, skipFiel
*/
WalletFactory.prototype.import = function(base64, passphrase, skipFields) {
var self = this;
var w = self.fromEncryptedObj(base64, passphrase, skipFields);
if (!w) throw new Error('Wrong passphrase');
return w;
return self.fromEncryptedObj(base64, passphrase, skipFields);
};
/**