aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/js8
1 files changed, 7 insertions, 1 deletions
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)+'');
+ }
+ });
}