diff --git a/collects/scribble/lp-include.ss b/collects/scribble/lp-include.ss index 09a3262180..f494e0dc47 100644 --- a/collects/scribble/lp-include.ss +++ b/collects/scribble/lp-include.ss @@ -9,12 +9,12 @@ (define-syntax (module stx) (syntax-case stx (#%module-begin) [(module name base (#%module-begin body ...)) - (begin - #'(begin body ...))])) + #'(begin body ...)] + [(module name base body ...) + (raise-syntax-error #f "missing #%module-begin" stx)])) (define-syntax (lp-include stx) (syntax-case stx () [(_ name) (with-syntax ([there (datum->syntax stx 'there)]) #'(include-at/relative-to here there name))])) -