summaryrefslogtreecommitdiff
path: root/src/rebar_app_discover.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_app_discover.erl')
-rw-r--r--src/rebar_app_discover.erl12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/rebar_app_discover.erl b/src/rebar_app_discover.erl
index ae4916e..4005612 100644
--- a/src/rebar_app_discover.erl
+++ b/src/rebar_app_discover.erl
@@ -70,7 +70,9 @@ find_app(AppDir, Validate) ->
[F] ->
rebar_app_info:app_file_src(AppInfo1, F);
[] ->
- AppInfo1
+ AppInfo1;
+ Other when is_list(Other) ->
+ throw({error, {multiple_app_files, Other}})
end,
case Validate of
valid ->
@@ -101,8 +103,12 @@ find_app(AppDir, Validate) ->
false
end;
[] ->
- false
- end
+ false;
+ Other when is_list(Other) ->
+ throw({error, {multiple_app_files, Other}})
+ end;
+ Other when is_list(Other) ->
+ throw({error, {multiple_app_files, Other}})
end.
app_dir(AppFile) ->