mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
handle different errors messages for unbound variables
This commit is contained in:
parent
993ac2fd74
commit
1e0cf93a0a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue