fix check-exn contract error message

This commit is contained in:
Ryan Culpepper 2016-07-29 11:45:52 -04:00 committed by GitHub
parent 21b278c864
commit 7f484888f5

View File

@ -215,7 +215,7 @@
[(and (procedure? raw-pred) (procedure-arity-includes? raw-pred 1))
raw-pred]
[else
(raise-argument-error 'check-exn "(-> any/c any/c)" raw-pred)])])
(raise-argument-error 'check-exn "(or/c (-> any/c any/c) regexp?)" raw-pred)])])
(raise-error-if-not-thunk 'check-exn thunk)
(let/ec succeed
(with-handlers