update error msg

main
Matthew Butterick 6 years ago
parent bbcfada560
commit ac0f8ba060

@ -11,7 +11,7 @@
(define (current-page doc)
(match (pdf-pages doc)
[(? pair? ps) (car ps)]
[_ (raise-argument-error 'current-page "no pages in pdf" doc)]))
[_ (raise-argument-error 'current-page "pdf with pages in it" doc)]))
(define (add-content doc data)
(page-write (current-page doc) data))

Loading…
Cancel
Save