Skip to content
Browse files

If agner rebar plugin is enabled but agner key is not presented, we s…

…houdln't fail (was failing with function_clause)
  • Loading branch information...
1 parent 5370cb4 commit 33f8ff62d5f9eaa1b651ae8406d70845b3626f8d @yrashk yrashk committed Apr 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/agner_fetch.erl
View
2 src/agner_fetch.erl
@@ -79,7 +79,7 @@ handle_state(ready, #state{ opts = #opts_rec { package = undefined,
AgnerKey =
case file:consult(App) of
{ok, [{application, _, Terms}]} ->
- proplists:get_value(agner, Terms);
+ proplists:get_value(agner, Terms, []);
_ ->
not_found
end,

0 comments on commit 33f8ff6

Please sign in to comment.
Something went wrong with that request. Please try again.