diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-02-25 03:46:53 +0000 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-02-25 03:46:53 +0000 |
commit | e8b2c274e928142b1d3e456c448a9d031e96c0d4 (patch) | |
tree | 9d786f075ec650e932c1ea088a6d901b7b402e4f | |
parent | ba2e2cb32811358c200d144d95209972487529b7 (diff) |
Fix crash on non-git source deps in deps provider
The 'element(1, ..)' guard would always fail and cause crashes.
-rw-r--r-- | src/rebar_prv_deps.erl | 2 |
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]); |