summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-01-27 12:11:41 -0600
committerTristan Sloughter <t@crashfast.com>2015-01-27 12:11:41 -0600
commitebcbe0071a60f881fa648977e9c8e8f3ad0c3450 (patch)
tree0b85f46467c51fedf4d6f1218ed6d22490171a4c
parent395be3386b0685121b51233a4b9c0288dec329bb (diff)
app_info:valid needs to return a boolean and not throw an exception
-rw-r--r--src/rebar_app_info.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rebar_app_info.erl b/src/rebar_app_info.erl
index ce23c22..23d118f 100644
--- a/src/rebar_app_info.erl
+++ b/src/rebar_app_info.erl
@@ -224,7 +224,12 @@ state(#app_info_t{state=State}) ->
-spec valid(t()) -> boolean().
valid(AppInfo=#app_info_t{valid=undefined}) ->
- rebar_app_discover:validate_application_info(AppInfo);
+ try
+ rebar_app_discover:validate_application_info(AppInfo)
+ catch
+ _:_ ->
+ false
+ end;
valid(#app_info_t{valid=Valid}) ->
Valid.