fixed error reporting code to see string

This commit is contained in:
Matthias Felleisen 2014-06-09 16:48:54 -04:00
parent 40e972d87e
commit a8d799325f

View File

@ -397,7 +397,7 @@
#`(let ([expr test-expr]) #`(let ([expr test-expr])
(if (not (#,type? expr)) (if (not (#,type? expr))
#,(syntax/loc #'test-expr #,(syntax/loc #'test-expr
(error 'type-case "expected a value from type ~a, got: ~a" (error 'type-case "expected a value from type ~a, got: ~e"
'type-id 'type-id
expr)) expr))
(cond (cond