From 04ea67a7eded3cc296e27ce1a9ae766a638035df Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Wed, 22 Oct 2014 21:16:55 -0500 Subject: use providers PRV_ERROR and format_error/2 --- src/rlx_prv_relup.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rlx_prv_relup.erl') diff --git a/src/rlx_prv_relup.erl b/src/rlx_prv_relup.erl index 3564dd0..df6f831 100644 --- a/src/rlx_prv_relup.erl +++ b/src/rlx_prv_relup.erl @@ -70,9 +70,9 @@ format_error({relup_script_generation_error, {missing_sasl, _}}}, _) -> "Unfortunately, due to requirements in systools, you need to have the sasl application " "in both the current release and the release to upgrade from."; -format_error({relup_script_generation_error, Module, Errors}, _) -> +format_error({relup_script_generation_error, Module, Errors}, State) -> ["Errors generating relup \n", - rlx_util:indent(2), Module:format_error(Errors)]. + rlx_util:indent(2), Module:format_error(Errors, State)]. make_relup(State, Release) -> Vsn = rlx_state:upfrom(State), -- cgit v1.2.3