Skip to content

Commit cef26da

Browse files
committed
Return relative file paths on --info
1 parent 901925c commit cef26da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mix/tasks/phx.routes.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ defmodule Mix.Tasks.Phx.Routes do
169169
defp get_file_path(module_name) do
170170
[compile_infos] = Keyword.get_values(module_name.module_info(), :compile)
171171
[source] = Keyword.get_values(compile_infos, :source)
172-
source
172+
Path.relative_to_cwd(source)
173173
end
174174

175175
defp get_line_number(_, nil), do: nil

0 commit comments

Comments
 (0)