From ebcbe0071a60f881fa648977e9c8e8f3ad0c3450 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Tue, 27 Jan 2015 12:11:41 -0600 Subject: app_info:valid needs to return a boolean and not throw an exception --- src/rebar_app_info.erl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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. -- cgit v1.1