diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2014-12-07 16:14:42 -0500 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2014-12-07 16:14:42 -0500 |
commit | 4af9ed924e7f75873cc1f541b6bbf63bf26ecf7f (patch) | |
tree | 1a10e70b94337d035765e0da506a534ad07604df | |
parent | ac077e87eed86aedec177548c9a8d382271eb127 (diff) | |
parent | 9f8e6ed024fe94c4aef8495747be6005426f54b1 (diff) |
Merge pull request #48 from tsloughter/master
use PRV_ERROR to wrap a provider error in {error, {?MODULE, ...}}
-rw-r--r-- | rebar.config | 2 | ||||
-rw-r--r-- | 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 |