From 256fb0095b414d807855adc39a0b1b275360f959 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Tue, 11 Aug 2015 16:25:29 -0300 Subject: [PATCH] improve error message --- lib/server.js | 2 +- test/integration/server.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/server.js b/lib/server.js index f04b9c5..cd85a5f 100644 --- a/lib/server.js +++ b/lib/server.js @@ -1204,7 +1204,7 @@ WalletService.prototype.signTx = function(opts, cb) { if (!self.clientVersion || /^bw.-0\.0\./.test(self.clientVersion)) { if (!_.startsWith(txp.version, '1.')) { - return cb(new ClientError(Errors.codes.UPGRADE_NEEDED, 'This spend proposal was created using a newer version of the client app')); + return cb(new ClientError(Errors.codes.UPGRADE_NEEDED, 'To sign this spend proposal you need to upgrade your client app.')); } } diff --git a/test/integration/server.js b/test/integration/server.js index 0584af0..7143760 100644 --- a/test/integration/server.js +++ b/test/integration/server.js @@ -4338,7 +4338,7 @@ describe('Wallet service', function() { verifyStub.restore(); should.exist(err); err.code.should.equal('UPGRADE_NEEDED'); - err.message.should.contain('newer version'); + err.message.should.contain('sign this spend proposal'); done(); }); });