diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-05-18 13:49:22 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-05-18 13:49:22 -0400 |
| commit | 361534b209334e8faaaece890da08faf32b79c20 (patch) | |
| tree | 0bf5d10e69f8b82a978f3b7d0d72e067f4847ffd /bqn.js | |
| parent | a8991f4ebda4cb7a020b799ac559fec007f0b28e (diff) | |
Tag errors with source location
Diffstat (limited to 'bqn.js')
| -rwxr-xr-x | bqn.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -54,7 +54,7 @@ if (!module.parent) { try { fn(src); } catch(e) { - console.error('[31m'+fmtErr(Array.from(src),e)+'[39m'); + console.error('[31m'+fmtErr(e)+'[39m'); } } if (arg0[0] !== '-' || (arg0==='-f'&&(arg0=(args=args.slice(1))[0],1))) { |
