improve error message

This commit is contained in:
Ivan Socolsky 2015-08-11 16:25:29 -03:00
parent 48bfa24859
commit 256fb0095b
2 changed files with 2 additions and 2 deletions

View File

@ -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.'));
}
}

View File

@ -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();
});
});