chore: add more info in error message
This commit is contained in:
parent
4b1bb91516
commit
e4cb11fb43
|
@ -23,7 +23,6 @@ usage() ->
|
||||||
"Usage: " ++ escript:script_name() ++ " emqx|emqx-edge".
|
"Usage: " ++ escript:script_name() ++ " emqx|emqx-edge".
|
||||||
|
|
||||||
-type app() :: atom().
|
-type app() :: atom().
|
||||||
-type deps_overlay() :: {re, string()} | app().
|
|
||||||
|
|
||||||
base_deps() ->
|
base_deps() ->
|
||||||
%% make sure emqx_dashboard depends on all other emqx_xxx apps
|
%% make sure emqx_dashboard depends on all other emqx_xxx apps
|
||||||
|
@ -80,8 +79,8 @@ list_apps(LibDir) ->
|
||||||
|
|
||||||
is_app(_LibDir, "." ++ _) -> false; %% ignore hidden dir
|
is_app(_LibDir, "." ++ _) -> false; %% ignore hidden dir
|
||||||
is_app(LibDir, AppName) ->
|
is_app(LibDir, AppName) ->
|
||||||
filelib:is_regular(filename:join([ebin_dir(LibDir, AppName), AppName ++ ".app"])) orelse
|
Path = filename:join([ebin_dir(LibDir, AppName), AppName ++ ".app"]),
|
||||||
error({unknown_app, AppName}). %% wtf
|
filelib:is_regular(Path) orelse error({unknown_app, AppName, Path}). %% wtf
|
||||||
|
|
||||||
lib_dir(Profile) ->
|
lib_dir(Profile) ->
|
||||||
filename:join(["_build", Profile, lib]).
|
filename:join(["_build", Profile, lib]).
|
||||||
|
|
Loading…
Reference in New Issue