diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2009-12-20 20:43:45 -0700 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2009-12-20 20:43:45 -0700 |
commit | a0b665360a51bc1237a436745c61604a3c117c43 (patch) | |
tree | 0725d11f56eec0eedb25e4260be8396678aabbf8 /src | |
parent | d051534b9707fae83fa4f6c0b63a8e22e3c04e5a (diff) |
Adding some addt'l logging to make it easier to diagnose probs
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rebar.erl b/src/rebar.erl index 1e44293..0024401 100644 --- a/src/rebar.erl +++ b/src/rebar.erl @@ -50,6 +50,10 @@ main(Args) -> case catch(rebar_core:run(Args)) of ok -> ok; - _ -> + {error, failed} -> + halt(1); + Error -> + %% Nothing should percolate up from rebar_core; dump this error to console + io:format("Uncaught error in rebar_core: ~p\n", [Error]), halt(1) end. |