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"}}}, {branch, "master"}}},
{providers, "", {providers, "",
{git, "https://github.com/tsloughter/providers.git", {git, "https://github.com/tsloughter/providers.git",
{branch, "master"}}},
{tag, "v1.0.0"}}},
{erlydtl, ".*", {erlydtl, ".*",
{git, "https://github.com/erlydtl/erlydtl.git", {git, "https://github.com/erlydtl/erlydtl.git",
{tag, "0.9.4"}}}, {tag, "0.9.4"}}},

+ 2
- 1
src/rebar_prv_install_deps.erl View File

@ -33,6 +33,7 @@
format_error/1]). format_error/1]).
-include("rebar.hrl"). -include("rebar.hrl").
-include_lib("providers/include/providers.hrl").
-export([handle_deps/2, -export([handle_deps/2,
handle_deps/3]). handle_deps/3]).
@ -86,7 +87,7 @@ do(State) ->
lists:dropwhile(fun rebar_app_info:valid/1 lists:dropwhile(fun rebar_app_info:valid/1
, Sort -- ProjectApps))}; , Sort -- ProjectApps))};
{error, {cycles, Cycles}} -> {error, {cycles, Cycles}} ->
{error, {?MODULE, {cycles, Cycles}}};
?PRV_ERROR({cycles, Cycles});
{error, Error} -> {error, Error} ->
{error, Error} {error, Error}
end end

Loading…
Cancel
Save