From 92245a138b7ee314e625486b9f537ac267a35aa6 Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Mon, 16 Mar 2015 01:44:24 +0000 Subject: use PRV_ERROR for formattable errors Also expose it in rebar_api --- src/rebar_prv_dialyzer.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/rebar_prv_dialyzer.erl') 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(). -- cgit v1.1