diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-12-07 14:07:49 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-12-07 14:07:49 -0600 |
commit | 9f8e6ed024fe94c4aef8495747be6005426f54b1 (patch) | |
tree | 1a10e70b94337d035765e0da506a534ad07604df /src | |
parent | ac077e87eed86aedec177548c9a8d382271eb127 (diff) |
use PRV_ERROR to wrap a provider error in {error, {?MODULE, ...}}
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_prv_install_deps.erl | 3 |
1 files changed, 2 insertions, 1 deletions
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 |