Skip to content

Commit eb8121c

Browse files
author
José Valim
committed
Print relative paths in the formatter error
1 parent 3f0608b commit eb8121c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mix/lib/mix/tasks/format.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ defmodule Mix.Tasks.Format do
498498
end
499499

500500
defp to_bullet_list(files) do
501-
Enum.map_join(files, "\n", &" * #{&1}")
501+
Enum.map_join(files, "\n", &" * #{&1 |> to_string() |> Path.relative_to_cwd()}")
502502
end
503503

504504
defp equivalent?(input, output) do

0 commit comments

Comments
 (0)