mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-12 06:41:13 +02:00
(scm_input_error): new function: give meaningful error
messages, and throw read-error
This commit is contained in:
parent
ba1b222692
commit
0f8ae50a81
1 changed files with 4 additions and 6 deletions
|
@ -191,12 +191,10 @@ scm_flush_ws (SCM port, const char *eoferr)
|
||||||
goteof:
|
goteof:
|
||||||
if (eoferr)
|
if (eoferr)
|
||||||
{
|
{
|
||||||
if (!SCM_FALSEP (SCM_FILENAME (port)))
|
scm_input_error (eoferr,
|
||||||
scm_misc_error (eoferr,
|
port,
|
||||||
"end of file in ~A",
|
"end of file",
|
||||||
scm_list_1 (SCM_FILENAME (port)));
|
SCM_EOL);
|
||||||
else
|
|
||||||
scm_misc_error (eoferr, "end of file", SCM_EOL);
|
|
||||||
}
|
}
|
||||||
return c;
|
return c;
|
||||||
case ';':
|
case ';':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue