summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2015-02-25 07:31:04 -0600
committerTristan Sloughter <tristan.sloughter@gmail.com>2015-02-25 07:31:04 -0600
commitc9fd3c73aae648bbe7a03195c8449193ecce1398 (patch)
tree9d786f075ec650e932c1ea088a6d901b7b402e4f
parentba2e2cb32811358c200d144d95209972487529b7 (diff)
parente8b2c274e928142b1d3e456c448a9d031e96c0d4 (diff)
Merge pull request #184 from ferd/fix-deps-unknown-src
Fix crash on non-git source deps in deps provider
-rw-r--r--src/rebar_prv_deps.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_prv_deps.erl b/src/rebar_prv_deps.erl
index c7d9cf7..bb8dc65 100644
--- a/src/rebar_prv_deps.erl
+++ b/src/rebar_prv_deps.erl
@@ -67,7 +67,7 @@ display_dep(_State, {Name, _Vsn, Source}) when is_tuple(Source), element(1, Sour
display_dep(_State, {Name, _Vsn, Source, _Opts}) when is_tuple(Source), element(1, Source) =:= git ->
?CONSOLE("~s* (git soutce)", [ec_cnv:to_binary(Name)]);
%% unknown source
-display_dep(_State, {Name, Source}) when is_tuple(Source), element(1, Source) ->
+display_dep(_State, {Name, Source}) when is_tuple(Source) ->
?CONSOLE("~s* (source ~p)", [ec_cnv:to_binary(Name), Source]);
display_dep(_State, {Name, _Vsn, Source}) when is_tuple(Source) ->
?CONSOLE("~s* (source ~p)", [ec_cnv:to_binary(Name), Source]);