Commit 4023589e authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #236 from ethereum/debug-failed

Support debugging failed transactions
parents 21953d8b 41d48af9
...@@ -572,9 +572,11 @@ UniversalDApp.prototype.getCallButton = function (args) { ...@@ -572,9 +572,11 @@ UniversalDApp.prototype.getCallButton = function (args) {
// VM only // VM only
} else if (self.executionContext.isVM() && result.vm.exception === 0 && result.vm.exceptionError) { } else if (self.executionContext.isVM() && result.vm.exception === 0 && result.vm.exceptionError) {
replaceOutput($result, $('<span/>').text('VM Exception: ' + result.vm.exceptionError).addClass('error')); replaceOutput($result, $('<span/>').text('VM Exception: ' + result.vm.exceptionError).addClass('error'));
$result.append(getDebugTransaction(result));
// VM only // VM only
} else if (self.executionContext.isVM() && result.vm.return === undefined) { } else if (self.executionContext.isVM() && result.vm.return === undefined) {
replaceOutput($result, $('<span/>').text('Exception during execution.').addClass('error')); replaceOutput($result, $('<span/>').text('Exception during execution.').addClass('error'));
$result.append(getDebugTransaction(result));
} else if (isConstructor) { } else if (isConstructor) {
replaceOutput($result, getGasUsedOutput(result, result.vm)); replaceOutput($result, getGasUsedOutput(result, result.vm));
$result.append(getDebugTransaction(result)); $result.append(getDebugTransaction(result));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment