summaryrefslogtreecommitdiff
path: root/src/rebar3.erl
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2015-02-13 13:38:42 -0600
committerTristan Sloughter <tristan.sloughter@gmail.com>2015-02-13 13:38:42 -0600
commitdcab8baca0d6e2baad6c42d758571e4da619894a (patch)
treedc532991afca1208d1d395b16e9622e541326f5e /src/rebar3.erl
parent4b162c5917fe3b377310b221f8e13327da1f96a8 (diff)
parent36563c0ab99af2dd3656f737fbed39df13fc6f81 (diff)
Merge pull request #142 from rebar/wtf-provider
Initial WTF provider implementation
Diffstat (limited to 'src/rebar3.erl')
-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.