diff --git a/assets/js/universal-dapp.js b/assets/js/universal-dapp.js index 1d79f0b54b..3011e3d015 100644 --- a/assets/js/universal-dapp.js +++ b/assets/js/universal-dapp.js @@ -290,6 +290,8 @@ UniversalDApp.prototype.getCallButton = function(args) { self.runTx(data, args, function(err, result) { if (err) { replaceOutput($result, $('').text(err).addClass('error')); + } else if (result.vm.exception && result.vm.exceptionError) { + replaceOutput($result, $('').text('VM Exception: ' + result.vm.exceptionError).addClass('error')); } else if (self.options.vm && result.vm.return === undefined) { replaceOutput($result, $('').text('Exception during execution.').addClass('error')); } else if (self.options.vm && isConstructor) {