Improved error system.
authorTim Vaughan <tgvaughan@gmail.com>
Mon, 19 Jun 2017 10:35:28 +0000 (22:35 +1200)
committerTim Vaughan <tgvaughan@gmail.com>
Mon, 19 Jun 2017 10:35:28 +0000 (22:35 +1200)
src/scheme-primitives.4th

index 1e37e0d..f38fd93 100644 (file)
@@ -611,12 +611,15 @@ defer display
     nil? if
         ." Error."
     else
-        ." Error: "
-
-        begin
-            2dup car print
-            cdr nil?
-        until
+        ." Error:"
+
+        2dup car space display
+        cdr nil? invert if
+            begin
+                2dup car space print
+                cdr nil?
+            until
+        then
 
         2drop
     then