diff options
author | Serge Aleynikov <saleyn@gmail.com> | 2019-07-02 06:27:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-02 06:27:20 -0400 |
commit | 185f885f698fd27b51ef58572592ab29cab0e287 (patch) | |
tree | 05e0306508cd31962db46d4734caea1a141a82c4 /src | |
parent | d6195601e95527da29dfd17755dbf71b68bb932a (diff) |
Refine the error cause
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_app_discover.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_app_discover.erl b/src/rebar_app_discover.erl index 0d1e427..0b7eeb1 100644 --- a/src/rebar_app_discover.erl +++ b/src/rebar_app_discover.erl @@ -86,8 +86,8 @@ format_error({module_list, File}) -> io_lib:format("Error reading module list from ~p~n", [File]); format_error({missing_module, Module}) -> io_lib:format("Module defined in app file missing: ~p~n", [Module]); -format_error({cannot_find_app_file, AppFile}) -> - io_lib:format("Cannot find app file: ~p~n", [AppFile]). +format_error({cannot_read_app_file, AppFile}) -> + io_lib:format("Cannot read app file: ~p~n", [AppFile]). %% @doc merges configuration of a project app and the top level state @@ -371,7 +371,7 @@ create_app_info(AppInfo, AppDir, AppFile) -> end, rebar_app_info:dir(rebar_app_info:valid(AppInfo2, Valid), AppDir); [] -> - throw({error, {?MODULE, {cannot_find_app_file, AppFile}}}) + throw({error, {?MODULE, {cannot_read_app_file, AppFile}}}) end. %% @doc Read in and parse the .app file if it is availabe. Do the same for |