fix pattern match on error message that was modified in 8cf49dfdb1
This commit is contained in:
parent
8cf49dfdb1
commit
a5420e41fc
|
@ -44,12 +44,12 @@
|
||||||
(with-handlers
|
(with-handlers
|
||||||
([(lambda (x)
|
([(lambda (x)
|
||||||
(and (exn:fail? x)
|
(and (exn:fail? x)
|
||||||
(regexp-match #rx"serialize: expected argument of type <serializable object>; given (.*)"
|
(regexp-match #rx"serialize: expected argument of type <serializable object>; given: (.*)"
|
||||||
(exn-message x))))
|
(exn-message x))))
|
||||||
(lambda (x)
|
(lambda (x)
|
||||||
(define non
|
(define non
|
||||||
(second
|
(second
|
||||||
(regexp-match #rx"serialize: expected argument of type <serializable object>; given (.*)"
|
(regexp-match #rx"serialize: expected argument of type <serializable object>; given: (.*)"
|
||||||
(exn-message x))))
|
(exn-message x))))
|
||||||
(error 'stuff-url
|
(error 'stuff-url
|
||||||
"Cannot stuff ~e into a URL because it contains non-serializable pieces. Convert ~a to a serializable struct"
|
"Cannot stuff ~e into a URL because it contains non-serializable pieces. Convert ~a to a serializable struct"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user