Update traceManager.ts

pull/5603/head
Ragnar 3 weeks ago committed by yann300
parent cfca9b93a8
commit 084f0a1781
  1. 7
      libs/remix-debug/src/trace/traceManager.ts

@ -137,8 +137,11 @@ export class TraceManager {
throw new TraceError(`Invalid step index: ${check.message}`, stepIndex) throw new TraceError(`Invalid step index: ${check.message}`, stepIndex)
} }
const callsPath = util.buildCallPath(stepIndex, this.traceCache.callsTree.call) const callsPath = util.buildCallPath(stepIndex, this.traceCache.callsTree.call)
if (callsPath === null) throw new TraceError('Failed to build call path: no valid path found', stepIndex) if (callsPath) {
return callsPath return callsPath
} else {
throw new TraceError('Failed to build call path: no valid path found', stepIndex)
}
} }
getCallStackAt (stepIndex) { getCallStackAt (stepIndex) {

Loading…
Cancel
Save