mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-30 06:50:31 +02:00
abort on pre-boot throw without catch
* libguile/throw.c (pre_init_throw): Abort instead of exit in the error case. Print out a message.
This commit is contained in:
parent
c7c2d87547
commit
e745064231
1 changed files with 3 additions and 1 deletions
|
@ -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 */
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue