Fixed type error in source location conversion.
svn: r17714
This commit is contained in:
parent
4d22b7a5f4
commit
b0c93342d9
|
@ -46,15 +46,18 @@
|
||||||
b)))
|
b)))
|
||||||
|
|
||||||
(define (simplify-source loc)
|
(define (simplify-source loc)
|
||||||
(let* ([src (srcloc-source loc)])
|
(let* ([loc (build-source-location loc)]
|
||||||
|
[src (srcloc-source loc)])
|
||||||
(if (path? src)
|
(if (path? src)
|
||||||
(let* ([rel (path->main-collects-relative src)])
|
(let* ([rel (path->main-collects-relative src)])
|
||||||
(if (pair? rel)
|
(if (pair? rel)
|
||||||
(apply build-path
|
(struct-copy srcloc loc
|
||||||
(bytes->path #"<collects>")
|
[source
|
||||||
(map bytes->path-element (cdr rel)))
|
(apply build-path
|
||||||
rel))
|
(bytes->path #"<collects>")
|
||||||
src)))
|
(map bytes->path-element (cdr rel)))])
|
||||||
|
loc))
|
||||||
|
loc)))
|
||||||
|
|
||||||
(define (default-blame-format b x custom-message)
|
(define (default-blame-format b x custom-message)
|
||||||
(let* ([source-message (source-location->prefix
|
(let* ([source-message (source-location->prefix
|
||||||
|
|
Loading…
Reference in New Issue
Block a user