abort on pre-boot throw without catch
authorAndy Wingo <wingo@pobox.com>
Wed, 9 Feb 2011 22:15:57 +0000 (23:15 +0100)
committerAndy Wingo <wingo@pobox.com>
Wed, 9 Feb 2011 22:17:09 +0000 (23:17 +0100)
* libguile/throw.c (pre_init_throw): Abort instead of exit in the error
  case.  Print out a message.

libguile/throw.c

index 5c25524..486228e 100644 (file)
@@ -566,8 +566,10 @@ pre_init_throw (SCM k, SCM args)
     return scm_at_abort (sym_pre_init_catch_tag, scm_cons (k, args));
   else
     { 
+      fprintf (stderr, "Throw without catch before boot:\n");
       scm_handle_by_message_noexit (NULL, k, args);
-      exit (1);
+      fprintf (stderr, "Aborting.\n");
+      abort ();
       return SCM_BOOL_F; /* not reached */
     }
 }