aboutsummaryrefslogtreecommitdiff
path: root/bqn.js
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-05-18 13:49:22 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-05-18 13:49:22 -0400
commit361534b209334e8faaaece890da08faf32b79c20 (patch)
tree0bf5d10e69f8b82a978f3b7d0d72e067f4847ffd /bqn.js
parenta8991f4ebda4cb7a020b799ac559fec007f0b28e (diff)
Tag errors with source location
Diffstat (limited to 'bqn.js')
-rwxr-xr-xbqn.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bqn.js b/bqn.js
index 52017727..bbbc2327 100755
--- a/bqn.js
+++ b/bqn.js
@@ -54,7 +54,7 @@ if (!module.parent) {
try {
fn(src);
} catch(e) {
- console.error(''+fmtErr(Array.from(src),e)+'');
+ console.error(''+fmtErr(e)+'');
}
}
if (arg0[0] !== '-' || (arg0==='-f'&&(arg0=(args=args.slice(1))[0],1))) {