Skip to content

Commit 12f9bf0

Browse files
author
José Valim
committed
Mention app: false on no app error
1 parent bf8f5a9 commit 12f9bf0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/mix/lib/mix/dep.ex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,10 @@ defmodule Mix.Dep do
147147
do: "ok"
148148

149149
def format_status(%Mix.Dep{status: {:noappfile, path}}),
150-
do: "could not find an app file at #{Path.relative_to_cwd(path)}, " <>
151-
"this may happen when you specified the wrong application name in your deps " <>
152-
"or if the dependency did not compile (which can be amended with `#{mix_env_var}mix deps.compile`)"
150+
do: "could not find an app file at #{Path.relative_to_cwd(path)}. " <>
151+
"This may happen if the dependency was not yet compiled, " <>
152+
"or you specified the wrong application name in your deps, " <>
153+
"or the dependency indeed has no app file (then you can pass app: false as option)"
153154

154155
def format_status(%Mix.Dep{status: {:invalidapp, path}}),
155156
do: "the app file at #{Path.relative_to_cwd(path)} is invalid"

0 commit comments

Comments
 (0)