Browse Source

Merge pull request #119 from tsloughter/master

app_info:valid needs to return a boolean and not throw an exception
pull/120/head
Fred Hebert 10 years ago
parent
commit
b2d66eb176
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/rebar_app_info.erl

+ 6
- 1
src/rebar_app_info.erl View File

@ -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.

Loading…
Cancel
Save