Skip to content

Commit 30eefb5

Browse files
committed
improve syntax error message slightly
1 parent 7e9a461 commit 30eefb5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

redex-lib/redex/private/binding-forms-compiler.rkt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@
4545
(raise-syntax-error (syntax-e form-name)
4646
"#:refers-to must appear nested inside a binding-form"
4747
(car (syntax-e binding-forms-stx)))]
48-
[anything (raise-syntax-error (syntax-e form-name) "expected a parenthesized binding form." #`anything)]))
48+
[(x . y)
49+
(raise-syntax-error (syntax-e form-name) "expected a parenthesized binding form" #`x)]
50+
[anything
51+
(raise-syntax-error (syntax-e form-name) "expected a parenthesized binding form" #`anything)]))
4952

5053

5154

0 commit comments

Comments
 (0)