guard path->relative-string/library call properly

This commit is contained in:
Robby Findler 2012-08-15 09:13:14 -05:00
parent 0c9865cee7
commit 85b326d1e7

View File

@ -570,8 +570,9 @@
[struct-name struct-name]
[(selector-ids ...) selector-ids]
[(constructor-args ...) (generate-temporaries selector-ids)]
[struct-name-srcloc `'(,(path->relative-string/library
(syntax-source struct-name))
[struct-name-srcloc `'(,(and (path-string? (syntax-source struct-name))
(path->relative-string/library
(syntax-source struct-name)))
,(syntax-line struct-name)
,(syntax-column struct-name)
,(syntax-position struct-name)