no source information on eof errors

svn: r6866
This commit is contained in:
Eli Barzilay 2007-07-09 05:50:30 +00:00
parent 6355ad12f4
commit c36c24f9b4

View File

@ -165,7 +165,8 @@
(define (read-error* line col pos span msg . xs)
(let* ([eof? (and (eq? 'eof msg) (pair? xs))]
[msg (apply format (if eof? xs (cons msg xs)))]
[loc (cond [(and line col) (format "at ~a:~a" line col)]
[loc (cond [eof? #f]
[(and line col) (format "at ~a:~a" line col)]
[pos (format "at #~a" pos)]
[else #f])]
[loc (cond [(and source-name loc)