update error message

This commit is contained in:
Matias Alejo Garcia 2015-04-02 12:28:25 -03:00
parent c582842a99
commit ae2ec61de6
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ WalletService.prototype.createWallet = function(opts, cb) {
return acb();
self.storage.fetchWallet(opts.id, function(err, wallet) {
if (wallet) return acb(new ClientError('Wallet already exists'));
if (wallet) return acb(new ClientError('WEXISTS', 'Wallet already exists'));
return acb(err);
});
},