From 0845425ce485a02b3a92e78b16f0119c3341aaca Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Tue, 29 Sep 2020 13:29:12 +0000 Subject: [PATCH] rename DEBUG to DIAGNOSTIC in crashdump messages --- src/rebar3.erl | 4 ++-- src/rebar_state.erl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rebar3.erl b/src/rebar3.erl index d830a303..1f9a041a 100644 --- a/src/rebar3.erl +++ b/src/rebar3.erl @@ -339,7 +339,7 @@ handle_error({error, {Module, Reason}}, Stacktrace) -> case code:which(Module) of non_existing -> ?CRASHDUMP("~p: ~p~n~p~n~n", [Module, Reason, Stacktrace]), - ?ERROR("Uncaught error in rebar_core. Run with DEBUG=1 to stacktrace or consult rebar3.crashdump", []), + ?ERROR("Uncaught error in rebar_core. Run with DIAGNOSTIC=1 to stacktrace or consult rebar3.crashdump", []), ?DEBUG("Uncaught error: ~p ~p", [Module, Reason]), ?INFO("When submitting a bug report, please include the output of `rebar3 report \"your command\"`", []); _ -> @@ -353,7 +353,7 @@ handle_error(Error, StackTrace) -> %% Nothing should percolate up from rebar_core; %% Dump this error to console ?CRASHDUMP("Error: ~p~n~p~n~n", [Error, StackTrace]), - ?ERROR("Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump", []), + ?ERROR("Uncaught error in rebar_core. Run with DIAGNOSTIC=1 to see stacktrace or consult rebar3.crashdump", []), ?DEBUG("Uncaught error: ~p", [Error]), case StackTrace of [] -> ok; diff --git a/src/rebar_state.erl b/src/rebar_state.erl index ba0ce0fe..4d2c2631 100644 --- a/src/rebar_state.erl +++ b/src/rebar_state.erl @@ -510,7 +510,7 @@ create_logic_providers(ProviderModules, State0) -> ?WITH_STACKTRACE(C,T,S) ?DEBUG("~p: ~p ~p", [C, T, S]), ?CRASHDUMP("~p: ~p~n~p~n~n~p", [C, T, S, State0]), - throw({error, "Failed creating providers. Run with DEBUG=1 for stacktrace or consult rebar3.crashdump."}) + throw({error, "Failed creating providers. Run with DIAGNOSTIC=1 for stacktrace or consult rebar3.crashdump."}) end. to_list(#state_t{} = State) ->