summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathaniel Waisbrot <nathaniel@waisbrot.net>2016-11-23 09:19:19 -0500
committerNathaniel Waisbrot <nathaniel@waisbrot.net>2016-11-23 09:19:19 -0500
commit62e1aaf6f5a58ac60871248c193c20d5c1e7bbc5 (patch)
tree6e4f8491dee14f99a90bb75aa64be211b0714913 /src
parent17e2356038fdc48eab830cf2719ef8e2e3e1748e (diff)
expect the `missing_package` error to have arity 2 or 3
Diffstat (limited to 'src')
-rw-r--r--src/rebar_packages.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_packages.erl b/src/rebar_packages.erl
index 8b4611b..4cce5a8 100644
--- a/src/rebar_packages.erl
+++ b/src/rebar_packages.erl
@@ -216,7 +216,7 @@ handle_single_vsn(Pkg, PkgVsn, Dep, Vsn, Constraint) ->
{ok, Vsn}
end.
-format_error({missing_package, {Name, Vsn}}) ->
+format_error({missing_package, Name, Vsn}) ->
io_lib:format("Package not found in registry: ~s-~s.", [ec_cnv:to_binary(Name), ec_cnv:to_binary(Vsn)]);
format_error({missing_package, Dep}) ->
io_lib:format("Package not found in registry: ~p.", [Dep]).