summaryrefslogtreecommitdiff
path: root/src/rebar_prv_install_deps.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_prv_install_deps.erl')
-rw-r--r--src/rebar_prv_install_deps.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl
index 9fb1630..9d83f18 100644
--- a/src/rebar_prv_install_deps.erl
+++ b/src/rebar_prv_install_deps.erl
@@ -130,7 +130,13 @@ handle_deps(State, Deps, Update) ->
[];
PkgDeps1 ->
%% Find pkg deps needed
- {ok, S} = rlx_depsolver:solve(Graph, PkgDeps1),
+ S = case rlx_depsolver:solve(Graph, PkgDeps1) of
+ {ok, Solution} ->
+ Solution;
+ Reason ->
+ throw({error, {rlx_depsolver, Reason}})
+ end,
+
%% Create app_info record for each pkg dep
[AppInfo || Pkg <- S,
AppInfo <- package_to_app(DepsDir