summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornuex <nx@nu-ex.com>2015-02-07 17:33:03 -0500
committernuex <nx@nu-ex.com>2015-02-07 17:33:03 -0500
commit79a1c285f0d66e3379b48c6e65ead55345620be2 (patch)
tree289835cb5ab5b823bee06e7b639dfa726bf5e4ed
parent038d721f90952f0eabda6b4e5333a0ec35a255dd (diff)
return an error when an app file is missing
-rw-r--r--src/rebar_app_utils.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rebar_app_utils.erl b/src/rebar_app_utils.erl
index dac3f0f..f991e4e 100644
--- a/src/rebar_app_utils.erl
+++ b/src/rebar_app_utils.erl
@@ -127,6 +127,7 @@ app_vsn(Config, AppFile) ->
%% Internal functions
%% ===================================================================
+load_app_file(_State, undefined) -> {error, missing_app_file};
load_app_file(State, Filename) ->
AppFile = {app_file, Filename},
case rebar_state:get(State, {appfile, AppFile}, undefined) of