diff --git a/pagetree.rkt b/pagetree.rkt index 4fc3052..02cc71e 100644 --- a/pagetree.rkt +++ b/pagetree.rkt @@ -32,6 +32,7 @@ (define+provide (validate-pagetree x) (let ([pagenodes (pagetree->list x)]) (and + (txexpr? x) (andmap (λ(p) (or (pagenode? p) (error (format "validate-pagetree: \"~a\" is not a valid pagenode" p)))) pagenodes) (try (members-unique?/error pagenodes) (except [exn:fail? (λ(e) (error (format "validate-pagetree: ~a" (exn-message e))))]))