diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-05-22 10:36:41 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-05-22 10:36:51 -0500 |
commit | 8528204431b609c14288098be5dea83676b59ec9 (patch) | |
tree | 7a1f4fd5bdecd00c2f9c12f9ab9e9932fcf275de /src/rebar_app_info.erl | |
parent | b7acb56f4710fe3fd11163f6874f82f0008625b6 (diff) |
print and format error message for bad .app files and all bad configs
Diffstat (limited to 'src/rebar_app_info.erl')
-rw-r--r-- | src/rebar_app_info.erl | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/rebar_app_info.erl b/src/rebar_app_info.erl index 247e5f4..382ea7a 100644 --- a/src/rebar_app_info.erl +++ b/src/rebar_app_info.erl @@ -167,12 +167,7 @@ app_details(AppInfo=#app_info_t{app_details=[]}) -> File -> File end, - case file:consult(AppFile) of - {ok, [{application, _, AppDetails}]} -> - AppDetails; - _ -> - [] - end; + rebar_file_utils:try_consult(AppFile); app_details(#app_info_t{app_details=AppDetails}) -> AppDetails. |