trigger error if trace not loaded

pull/7/head
yann300 8 years ago
parent df7ec2b6b3
commit a3e99b8212
  1. 4
      src/util/internalCallTree.js

@ -29,11 +29,11 @@ class InternalCallTree {
debuggerEvent.register('newTraceLoaded', (trace) => {
this.reset()
if (!this.solidityProxy.loaded()) {
console.log('compilation result not loaded. Cannot build internal call tree')
this.event.trigger('callTreeBuildFailed', ['compilation result not loaded. Cannot build internal call tree'])
} else {
buildTree(this, 0, '').then((result) => {
if (result.error) {
this.event.trigger('callTreeBuildFailed', [result])
this.event.trigger('callTreeBuildFailed', [result.error])
} else {
console.log('ready')
this.event.trigger('callTreeReady', [this.scopes, this.scopeStarts])

Loading…
Cancel
Save