Better error message when id is unbound in `make-env'.
This commit is contained in:
parent
13ef3849fc
commit
11167aa214
|
@ -194,10 +194,7 @@ don't depend on any other portion of the system
|
||||||
#:transparent
|
#:transparent
|
||||||
#:attributes (ty id)
|
#:attributes (ty id)
|
||||||
(pattern [nm:identifier ~! ty]
|
(pattern [nm:identifier ~! ty]
|
||||||
#:fail-unless (list? ((if (= 1 (syntax-local-phase-level))
|
#:fail-when (and (not (list? (identifier-template-binding #'nm))) #'nm)
|
||||||
identifier-template-binding
|
|
||||||
identifier-template-binding)
|
|
||||||
#'nm))
|
|
||||||
"not a bound identifier"
|
"not a bound identifier"
|
||||||
#:with id #'(quote-syntax nm))
|
#:with id #'(quote-syntax nm))
|
||||||
(pattern [e:expr ty]
|
(pattern [e:expr ty]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user