]> gitweb.factorcode.org Git - factor.git/commitdiff
Use debugger to print an error if startup hook fails; fixes #39
authorSlava Pestov <slava@factorcode.org>
Mon, 12 Sep 2011 06:37:00 +0000 (23:37 -0700)
committerSlava Pestov <slava@factorcode.org>
Mon, 12 Sep 2011 06:38:26 +0000 (23:38 -0700)
basis/bootstrap/finish-bootstrap.factor

index a8b68ba41994312265abf75d13de246a83c5350d..3f583599a0bfa2a82c7dd5a66b2833d7fef6755b 100644 (file)
@@ -1,4 +1,4 @@
-USING: init command-line.startup debugger system
+USING: init io command-line.startup debugger system
 continuations parser.notes namespaces ;
 
 [
@@ -6,6 +6,7 @@ continuations parser.notes namespaces ;
     t parser-quiet? set-global
     
     boot
-    do-startup-hooks
-    [ command-line-startup ] [ print-error 1 exit ] recover
+    [ do-startup-hooks command-line-startup ]
+    [ print-error :c flush 1 exit ]
+    recover
 ] set-startup-quot