From 04ea67a7eded3cc296e27ce1a9ae766a638035df Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Wed, 22 Oct 2014 21:16:55 -0500 Subject: use providers PRV_ERROR and format_error/2 --- include/relx.hrl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/relx.hrl b/include/relx.hrl index 3194873..cccd7bb 100644 --- a/include/relx.hrl +++ b/include/relx.hrl @@ -16,6 +16,7 @@ %% -include_lib("erlware_commons/include/ec_cmd_log.hrl"). +-include_lib("providers/include/providers.hrl"). -define(RLX_ERROR, ?EC_ERROR). -define(RLX_WARN, ?EC_WARN). @@ -26,5 +27,4 @@ %% system. It is expected that everything that returns an error use %% this and that they all expose a format_error/1 message that returns %% an iolist. --define(RLX_ERROR(Reason), - {error, {?MODULE, Reason}}). +-define(RLX_ERROR(Reason), ?PRV_ERROR(Reason)). -- cgit v1.2.3