From 39eef318c34eeb4d8916ab1304eb4abe6706045b Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Tue, 12 Jan 2021 15:20:07 -0500 Subject: Error formatting in test/js --- test/js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/js b/test/js index b3431fa5..c2967328 100755 --- a/test/js +++ b/test/js @@ -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(''+bqn.fmtErr(Array.from(a),e)+''); + } + }); } -- cgit v1.2.3