From ef7ec7d27f82ee394fdf2e57626525026eaa7361 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 7 Feb 2017 14:41:46 +0100 Subject: [PATCH] fix error message --- src/code/breakpointManager.js | 2 +- src/util/internalCallTree.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/code/breakpointManager.js b/src/code/breakpointManager.js index 90c82ec524..a06a0ed963 100644 --- a/src/code/breakpointManager.js +++ b/src/code/breakpointManager.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) diff --git a/src/util/internalCallTree.js b/src/util/internalCallTree.js index 18d7407e94..f17e3dd4f4 100644 --- a/src/util/internalCallTree.js +++ b/src/util/internalCallTree.js @@ -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 }