summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-02-13 09:41:02 -0500
committerFred Hebert <mononcqc@ferd.ca>2015-02-13 09:41:02 -0500
commit36563c0ab99af2dd3656f737fbed39df13fc6f81 (patch)
treef9270f24e7929665b76d4ea8ef0be300500a3364 /src
parent1d9f1737c7a3efe4885d6534df524fba79db4161 (diff)
Advertise rebar3 wtf in error messages
Diffstat (limited to 'src')
-rw-r--r--src/rebar3.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl
index c062aa4..268be68 100644
--- a/src/rebar3.erl
+++ b/src/rebar3.erl
@@ -54,7 +54,8 @@ main(Args) ->
case code:which(Module) of
non_existing ->
?ERROR("Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace", []),
- ?DEBUG("Uncaught error: ~p ~p", [Module, Reason]);
+ ?DEBUG("Uncaught error: ~p ~p", [Module, Reason]),
+ ?INFO("When submitting a bug report, please include the output of `rebar3 wtf \"your command\"`", []);
_ ->
?ERROR(Module:format_error(Reason), [])
end,
@@ -67,6 +68,7 @@ main(Args) ->
%% Dump this error to console
?ERROR("Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace", []),
?DEBUG("Uncaught error: ~p", [Error]),
+ ?INFO("When submitting a bug report, please include the output of `rebar3 wtf \"your command\"`", []),
erlang:halt(1)
end.