diff --git a/inttest/require_vsn/require_vsn_rt.erl b/inttest/require_vsn/require_vsn_rt.erl index fc720b5..0b947c5 100644 --- a/inttest/require_vsn/require_vsn_rt.erl +++ b/inttest/require_vsn/require_vsn_rt.erl @@ -45,8 +45,8 @@ run(_Dir) -> %% Treat version constraints as warnings. retest:log(info, "Check require vsn success with -k/--keep-going~n"), ok = check_output("./rebar -k compile", should_succeed, - [SharedExpected, "WARN: "], - ["ERROR: "]), + [SharedExpected, "ERROR: "], + ["WARN: "]), ok. check_output(Cmd, FailureMode, Expected, Unexpected) -> diff --git a/src/rebar_require_vsn.erl b/src/rebar_require_vsn.erl index b01723a..5eecf74 100644 --- a/src/rebar_require_vsn.erl +++ b/src/rebar_require_vsn.erl @@ -137,4 +137,4 @@ version_tuple(ShouldAbort, OtpRelease, Type) -> maybe_abort(abort, Format, Data) -> ?ABORT(Format, Data); maybe_abort(keep_going, Format, Data) -> - ?WARN(Format, Data). + ?ERROR(Format, Data).