summaryrefslogtreecommitdiff
path: root/src/rebar_app_info.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2018-11-30 09:00:08 -0700
committerGitHub <noreply@github.com>2018-11-30 09:00:08 -0700
commit73bf5b4c055ef30089dabb3f99d09410af144b7f (patch)
tree1768d0294934ff586719ef84ea446bac4381d40e /src/rebar_app_info.erl
parent531dce64413c625df8e690e0bcde2b40eb9ff3e9 (diff)
fix for mix projects that don't have app.src files (#1964)
Diffstat (limited to 'src/rebar_app_info.erl')
-rw-r--r--src/rebar_app_info.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rebar_app_info.erl b/src/rebar_app_info.erl
index 9dfe278..d051a15 100644
--- a/src/rebar_app_info.erl
+++ b/src/rebar_app_info.erl
@@ -343,9 +343,12 @@ app_file(AppInfo=#app_info_t{}, AppFile) ->
app_details(AppInfo=#app_info_t{app_details=[]}) ->
case app_file(AppInfo) of
undefined ->
- case rebar_config:consult_app_file(app_file_src(AppInfo)) of
+ try rebar_config:consult_app_file(app_file_src(AppInfo)) of
[] -> [];
[{application, _Name, AppDetails}] -> AppDetails
+ catch
+ _:_ ->
+ []
end;
AppFile ->
try rebar_file_utils:try_consult(AppFile) of