diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-01-12 15:20:07 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-01-12 15:20:07 -0500 |
| commit | 39eef318c34eeb4d8916ab1304eb4abe6706045b (patch) | |
| tree | 0c7132b0048b215713882d7f7896fa440c7c00f7 /test | |
| parent | 775625d162faab5f628872a0ca625f671a80d700 (diff) | |
Error formatting in test/js
Diffstat (limited to 'test')
| -rwxr-xr-x | test/js | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -26,5 +26,11 @@ if (onfiles || args.length==0) { : "All "+test.length+" passed!" ); } else { - args.map(a=>console.log(bqn.fmt(bqn(a)))); + args.map(a=>{ + try { + console.log(bqn.fmt(bqn(a))) + } catch(e) { + console.error('[31m'+bqn.fmtErr(Array.from(a),e)+'[39m'); + } + }); } |
