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) => { debuggerEvent.register('newTraceLoaded', (trace) => {
this.reset() this.reset()
if (!this.solidityProxy.loaded()) { 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 { } else {
buildTree(this, 0, '').then((result) => { buildTree(this, 0, '').then((result) => {
if (result.error) { if (result.error) {
this.event.trigger('callTreeBuildFailed', [result]) this.event.trigger('callTreeBuildFailed', [result.error])
} else { } else {
console.log('ready') console.log('ready')
this.event.trigger('callTreeReady', [this.scopes, this.scopeStarts]) this.event.trigger('callTreeReady', [this.scopes, this.scopeStarts])

Loading…
Cancel
Save