fix bug introduced in 6b2a4ff5
This commit is contained in:
parent
54b45607a2
commit
1f22800d51
|
@ -30,6 +30,7 @@
|
||||||
(format "~a~a"
|
(format "~a~a"
|
||||||
(cond [(not (error-print-source-location)) ""]
|
(cond [(not (error-print-source-location)) ""]
|
||||||
[(srcloc->string (srcloc source-name line col pos span))
|
[(srcloc->string (srcloc source-name line col pos span))
|
||||||
|
=>
|
||||||
(lambda (s)
|
(lambda (s)
|
||||||
(format "~a: " s))]
|
(format "~a: " s))]
|
||||||
[else ""])
|
[else ""])
|
||||||
|
|
9
collects/tests/syntax/test-readerr.rkt
Normal file
9
collects/tests/syntax/test-readerr.rkt
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#lang racket/base
|
||||||
|
(require rackunit syntax/readerr)
|
||||||
|
|
||||||
|
(check-exn
|
||||||
|
(λ (x)
|
||||||
|
(and (exn:fail:read:eof? x)
|
||||||
|
(regexp-match #rx"^y[01: ]* x" (exn-message x))))
|
||||||
|
(λ () (raise-read-eof-error
|
||||||
|
"x" "y" 1 1 1 1)))
|
Loading…
Reference in New Issue
Block a user