From 9f8e6ed024fe94c4aef8495747be6005426f54b1 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sun, 7 Dec 2014 14:07:49 -0600 Subject: use PRV_ERROR to wrap a provider error in {error, {?MODULE, ...}} --- rebar.config | 2 +- src/rebar_prv_install_deps.erl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rebar.config b/rebar.config index 3a035f1..296713a 100644 --- a/rebar.config +++ b/rebar.config @@ -23,7 +23,7 @@ {branch, "master"}}}, {providers, "", {git, "https://github.com/tsloughter/providers.git", - {branch, "master"}}}, + {tag, "v1.0.0"}}}, {erlydtl, ".*", {git, "https://github.com/erlydtl/erlydtl.git", {tag, "0.9.4"}}}, diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl index 00ef9c5..1ddfdf5 100644 --- a/src/rebar_prv_install_deps.erl +++ b/src/rebar_prv_install_deps.erl @@ -33,6 +33,7 @@ format_error/1]). -include("rebar.hrl"). +-include_lib("providers/include/providers.hrl"). -export([handle_deps/2, handle_deps/3]). @@ -86,7 +87,7 @@ do(State) -> lists:dropwhile(fun rebar_app_info:valid/1 , Sort -- ProjectApps))}; {error, {cycles, Cycles}} -> - {error, {?MODULE, {cycles, Cycles}}}; + ?PRV_ERROR({cycles, Cycles}); {error, Error} -> {error, Error} end -- cgit v1.1