fix error message

pull/7/head
yann300 8 years ago
parent c99564d954
commit ef7ec7d27f
  1. 2
      src/code/breakpointManager.js
  2. 2
      src/util/internalCallTree.js

@ -33,7 +33,7 @@ class breakpointManager {
try {
sourceLocation = await this.debugger.callTree.extractSourceLocation(currentStep)
} catch (e) {
console.log('cannot jump to breakpoint ' + e.message)
console.log('cannot jump to breakpoint ' + e)
}
if (this.locationToRowConverter) {
var lineColumn = this.locationToRowConverter(sourceLocation)

@ -119,7 +119,7 @@ async function buildTree (tree, step, scopeId) {
currentSourceLocation = sourceLocation
}
} catch (e) {
return { outStep: step, error: 'InternalCallTree - Error resolving source location. ' + step + ' ' + e.message }
return { outStep: step, error: 'InternalCallTree - Error resolving source location. ' + step + ' ' + e }
}
if (!sourceLocation) {
return { outStep: step, error: 'InternalCallTree - No source Location. ' + step }

Loading…
Cancel
Save