Skip to content

Commit e4e2f1a

Browse files
committed
Include environment in mix format missing dependency error
1 parent 138b442 commit e4e2f1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,8 @@ defmodule Mix.Tasks.Format do
451451
_ ->
452452
Mix.raise(
453453
"Unknown dependency #{inspect(dep)} given to :import_deps in the formatter configuration. " <>
454-
"Make sure the dependency is listed in your mix.exs and you have run \"mix deps.get\""
454+
"Make sure the dependency is listed in your mix.exs for environment #{inspect(Mix.env())} " <>
455+
"and you have run \"mix deps.get\""
455456
)
456457
end
457458
end

0 commit comments

Comments
 (0)