From ae2ec61de64bb9e523b8104f8b7b4697dbe42d53 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Thu, 2 Apr 2015 12:28:25 -0300 Subject: [PATCH] update error message --- lib/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.js b/lib/server.js index f687839..a72a2dd 100644 --- a/lib/server.js +++ b/lib/server.js @@ -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); }); },