diff options
| author | Tristan Sloughter <t@crashfast.com> | 2015-01-27 12:11:41 -0600 | 
|---|---|---|
| committer | Tristan Sloughter <t@crashfast.com> | 2015-01-27 12:11:41 -0600 | 
| commit | ebcbe0071a60f881fa648977e9c8e8f3ad0c3450 (patch) | |
| tree | 0b85f46467c51fedf4d6f1218ed6d22490171a4c | |
| parent | 395be3386b0685121b51233a4b9c0288dec329bb (diff) | |
app_info:valid needs to return a boolean and not throw an exception
| -rw-r--r-- | src/rebar_app_info.erl | 7 | 
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. | 
