summaryrefslogtreecommitdiff
path: root/src/rebar_prv_dialyzer.erl
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2015-03-16 12:59:31 -0500
committerTristan Sloughter <tristan.sloughter@gmail.com>2015-03-16 12:59:31 -0500
commit9d4ed68620b52d5b96e4bc3c4ebc8735a5df2782 (patch)
tree2d9913a65be9f0de9c5494a8080e4e6b6c994c2b /src/rebar_prv_dialyzer.erl
parent6e337e022c3c4521ee84121845305b494127aaf2 (diff)
parent92245a138b7ee314e625486b9f537ac267a35aa6 (diff)
Merge pull request #270 from ferd/cleanup-errors
use PRV_ERROR for formattable errors
Diffstat (limited to 'src/rebar_prv_dialyzer.erl')
-rw-r--r--src/rebar_prv_dialyzer.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar_prv_dialyzer.erl b/src/rebar_prv_dialyzer.erl
index 24e276d..ef6a64c 100644
--- a/src/rebar_prv_dialyzer.erl
+++ b/src/rebar_prv_dialyzer.erl
@@ -10,6 +10,7 @@
format_error/1]).
-include("rebar.hrl").
+-include_lib("providers/include/providers.hrl").
-define(PROVIDER, dialyzer).
-define(DEPS, [compile]).
@@ -70,9 +71,9 @@ do(State) ->
do(State, Plt, Apps)
catch
throw:{dialyzer_error, Error} ->
- {error, {?MODULE, {error_processing_apps, Error}}};
+ ?PRV_ERROR({error_processing_apps, Error});
throw:{dialyzer_warnings, Warnings} ->
- {error, {?MODULE, {dialyzer_warnings, Warnings}}}
+ ?PRV_ERROR({dialyzer_warnings, Warnings})
end.
-spec format_error(any()) -> iolist().