Skip to content

Commit 01052ba

Browse files
author
José Valim
committed
Improve deps.compile error message
1 parent 06f5b5a commit 01052ba

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/mix/lib/mix/tasks/deps.compile.ex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ defmodule Mix.Tasks.Deps.Compile do
106106
stacktrace = System.stacktrace
107107
app = dep.app
108108
Mix.shell.error "could not compile dependency #{inspect app}, \"mix compile\" failed. " <>
109-
"You can recompile this dependency with \"mix deps.compile #{app}\" or " <>
110-
"update it with \"mix deps.update #{app}\""
109+
"You can recompile this dependency with \"mix deps.compile #{app}\", update it " <>
110+
"with \"mix deps.update #{app}\" or clean it with \"mix deps.clean #{app}\""
111111
:erlang.raise(kind, reason, stacktrace)
112112
end
113113
end
@@ -159,7 +159,8 @@ defmodule Mix.Tasks.Deps.Compile do
159159
env = [{"ERL_LIBS", Path.join(config[:build_path], "lib")}]
160160
if Mix.shell.cmd("#{command} #{extra}", print_app: print_app?, env: env) != 0 do
161161
Mix.raise "Could not compile dependency #{inspect app}, \"#{command}\" command failed. " <>
162-
"If you want to recompile this dependency, please run: \"mix deps.compile #{app}\""
162+
"You can recompile this dependency with \"mix deps.compile #{app}\", update it " <>
163+
"with \"mix deps.update #{app}\" or clean it with \"mix deps.clean #{app}\""
163164
end
164165
end
165166
true

0 commit comments

Comments
 (0)