Skip to content

Commit

Permalink
Improve deps.compile error message
Browse files Browse the repository at this point in the history
  • Loading branch information
José Valim committed Sep 15, 2015
1 parent 06f5b5a commit 01052ba
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/mix/lib/mix/tasks/deps.compile.ex
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ defmodule Mix.Tasks.Deps.Compile do
stacktrace = System.stacktrace
app = dep.app
Mix.shell.error "could not compile dependency #{inspect app}, \"mix compile\" failed. " <>
"You can recompile this dependency with \"mix deps.compile #{app}\" or " <>
"update it with \"mix deps.update #{app}\""
"You can recompile this dependency with \"mix deps.compile #{app}\", update it " <>
"with \"mix deps.update #{app}\" or clean it with \"mix deps.clean #{app}\""
:erlang.raise(kind, reason, stacktrace)
end
end
Expand Down Expand Up @@ -159,7 +159,8 @@ defmodule Mix.Tasks.Deps.Compile do
env = [{"ERL_LIBS", Path.join(config[:build_path], "lib")}]
if Mix.shell.cmd("#{command} #{extra}", print_app: print_app?, env: env) != 0 do
Mix.raise "Could not compile dependency #{inspect app}, \"#{command}\" command failed. " <>
"If you want to recompile this dependency, please run: \"mix deps.compile #{app}\""
"You can recompile this dependency with \"mix deps.compile #{app}\", update it " <>
"with \"mix deps.update #{app}\" or clean it with \"mix deps.clean #{app}\""
end
end
true
Expand Down

0 comments on commit 01052ba

Please sign in to comment.