Commit a3e99b82 authored by yann300's avatar yann300

trigger error if trace not loaded

parent df7ec2b6
...@@ -29,11 +29,11 @@ class InternalCallTree { ...@@ -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])
......
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