1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00

handle different errors messages for unbound variables

This commit is contained in:
Michael Gran 2022-10-20 22:09:43 -07:00
parent 993ac2fd74
commit 1e0cf93a0a

View file

@ -91,7 +91,8 @@
"sequence of zero expressions")
(define exception:variable-ref
'(misc-error . "Unbound variable"))
;; Catch both "Variable is unbound" and "Unbound variable"
'(misc-error . "nbound"))
;; (put 'pass-if-syntax-error 'scheme-indent-function 1)
(define-syntax pass-if-syntax-error