From 19844b14929b3299c3721509c037b6c15090842c Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 13 Dec 2017 14:37:54 +0100 Subject: [PATCH] change error message --- src/app/execution/txExecution.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/execution/txExecution.js b/src/app/execution/txExecution.js index 908fd82350..424a6f16a3 100644 --- a/src/app/execution/txExecution.js +++ b/src/app/execution/txExecution.js @@ -57,13 +57,13 @@ module.exports = { var error = `VM error: ${txResult.result.vm.exceptionError}.\n` var msg if (txResult.result.vm.exceptionError === errorCode.INVALID_OPCODE) { - msg = `\tThe constructor should be payable if you send value.\n\tThe execution might have thrown.\n` + msg = `\t\n\tThe execution might have thrown.\n` ret.error = true } else if (txResult.result.vm.exceptionError === errorCode.OUT_OF_GAS) { msg = `\tThe transaction ran out of gas. Please increase the Gas Limit.\n` ret.error = true } else if (txResult.result.vm.exceptionError === errorCode.REVERT) { - msg = `\tThe transaction has been reverted to the initial state.\n` + msg = `\tThe transaction has been reverted to the initial state.\nNote: The constructor should be payable if you send value.` ret.error = true } else if (txResult.result.vm.exceptionError === errorCode.STATIC_STATE_CHANGE) { msg = `\tState changes is not allowed in Static Call context\n`