mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
(scm_ithrow): more refined error message: print symbols
too.
This commit is contained in:
parent
6d6a3fe260
commit
937038e823
2 changed files with 15 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-01-18 Han-Wen Nienhuys <hanwen@lilypond.org>
|
||||
|
||||
* throw.c (scm_ithrow): more refined error message: print symbols
|
||||
too.
|
||||
|
||||
2007-01-16 Kevin Ryde <user42@zip.com.au>
|
||||
|
||||
* feature.c, feature.h (scm_set_program_arguments_scm): New function,
|
||||
|
|
|
@ -711,9 +711,16 @@ scm_ithrow (SCM key, SCM args, int noreturn SCM_UNUSED)
|
|||
|
||||
|
||||
for (; scm_is_pair (s); s = scm_cdr (s), i++)
|
||||
if (scm_is_string (scm_car (s)))
|
||||
fprintf (stderr, "argument %d: %s\n", i, scm_i_string_chars (scm_car (s)));
|
||||
|
||||
{
|
||||
char const *str = NULL;
|
||||
if (scm_is_string (scm_car (s)))
|
||||
str = scm_i_string_chars (scm_car (s));
|
||||
else if (scm_is_symbol (scm_car (s)))
|
||||
str = scm_i_symbol_chars (scm_car (s));
|
||||
|
||||
if (str != NULL)
|
||||
fprintf (stderr, "argument %d: %s\n", i, str);
|
||||
}
|
||||
abort ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue