* "INTERNAL ERROR IN FORMAT-ERROR!"
@ 2022-04-19 16:52 Jean Abou Samra
2022-04-19 17:09 ` Maxime Devos
0 siblings, 1 reply; 2+ messages in thread
From: Jean Abou Samra @ 2022-04-19 16:52 UTC (permalink / raw)
To: guile-devel
Hi,
The simple file
(format #f "~f" 'invalid)
gives me
FORMAT: error with call: (format #f "~f<===" ===>invalid )
argument is not a number or a number string
FORMAT: INTERNAL ERROR IN FORMAT-ERROR!
destination: #f
format string: "~f"
format args: (invalid)
error args: (#f "error in format" () #f)
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
error in format
Is it expected to see 'INTERNAL ERROR IN FORMAT-ERROR!'?
To me, that has a meaning similar to an assertion failure.
Best,
Jean
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: "INTERNAL ERROR IN FORMAT-ERROR!"
2022-04-19 16:52 "INTERNAL ERROR IN FORMAT-ERROR!" Jean Abou Samra
@ 2022-04-19 17:09 ` Maxime Devos
0 siblings, 0 replies; 2+ messages in thread
From: Maxime Devos @ 2022-04-19 17:09 UTC (permalink / raw)
To: Jean Abou Samra, guile-devel
[-- Attachment #1: Type: text/plain, Size: 1203 bytes --]
Jean Abou Samra schreef op di 19-04-2022 om 18:52 [+0200]:
> The simple file
>
> (format #f "~f" 'invalid)
>
> gives me
>
> FORMAT: error with call: (format #f "~f<===" ===>invalid )
> argument is not a number or a number string
> FORMAT: INTERNAL ERROR IN FORMAT-ERROR!
> destination: #f
> format string: "~f"
> format args: (invalid)
> error args: (#f "error in format" () #f)
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> error in format
>
>
> Is it expected to see 'INTERNAL ERROR IN FORMAT-ERROR!'?
> To me, that has a meaning similar to an assertion failure.
Doesn't look internal to me, looks like an error at the use site of
'format'. I think the error message can be reworded a bit to make it
clearer:
format: The format string is incompatible with the passed arguments.
relevant part of format string: "~f"
invalid argument: invalid
expected: a number
destination: #f
format string: "~f"
format arguments: (invalid)
[no error args, because that would be redundant]
Greetings,
Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-19 17:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-19 16:52 "INTERNAL ERROR IN FORMAT-ERROR!" Jean Abou Samra
2022-04-19 17:09 ` Maxime Devos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).