mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
scm-error-printer resilience
* module/ice-9/boot-9.scm (scm-error-printer): Allow #f for rest args, interpreting it as '(). Fixes regexp throws, which are of the form: (regular-expression-syntax "make-regexp" "Invalid preceding regular expression" #f ("?.*"))
This commit is contained in:
parent
450aee6790
commit
4e33a13246
1 changed files with 1 additions and 1 deletions
|
@ -538,7 +538,7 @@ If there is no handler at all, Guile prints an error and then exits."
|
|||
((subr msg args . rest)
|
||||
(if subr
|
||||
(format port "In procedure ~a: " subr))
|
||||
(apply format port msg args))
|
||||
(apply format port msg (or args '())))
|
||||
(_ (default-printer)))
|
||||
args))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue