From 8ae76495300474eaa87c22bcc254cf35245a9177 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Thu, 19 Nov 2015 10:29:23 -0600 Subject: move relup successfuly created log message to after it is sucessfully written --- src/rlx_prv_relup.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rlx_prv_relup.erl b/src/rlx_prv_relup.erl index ad30914..9ac2135 100644 --- a/src/rlx_prv_relup.erl +++ b/src/rlx_prv_relup.erl @@ -140,9 +140,9 @@ make_upfrom_script(State, Release, UpFrom) -> error -> ?RLX_ERROR({relup_script_generation_error, CurrentRel, UpFromRel}); {ok, RelUp, _, []} -> - ec_cmd_log:info(rlx_state:log(State), - "relup successfully created!"), write_relup_file(State, Release, RelUp), + ec_cmd_log:info(rlx_state:log(State), + "relup successfully created!"), {ok, State}; {ok,_, Module,Warnings} -> ?RLX_ERROR({relup_script_generation_warn, Module, Warnings}); -- cgit v1.2.3