Browse Source

use PRV_ERROR to wrap a provider error in {error, {?MODULE, ...}}

pull/48/head
Tristan Sloughter 10 years ago
parent
commit
9f8e6ed024
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      rebar.config
  2. +2
    -1
      src/rebar_prv_install_deps.erl

+ 1
- 1
rebar.config View File

@ -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"}}},

+ 2
- 1
src/rebar_prv_install_deps.erl View File

@ -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

Loading…
Cancel
Save