diff options
author | Tristan Sloughter <[email protected]> | 2014-10-22 21:16:55 -0500 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2014-10-23 11:16:36 -0500 |
commit | 04ea67a7eded3cc296e27ce1a9ae766a638035df (patch) | |
tree | 5f375f981e537a332024f0d60901d9296676a0de /include | |
parent | c3b538199f387a536812fcaf57ccc46de48e88e9 (diff) | |
download | relx-04ea67a7eded3cc296e27ce1a9ae766a638035df.tar.gz relx-04ea67a7eded3cc296e27ce1a9ae766a638035df.tar.bz2 relx-04ea67a7eded3cc296e27ce1a9ae766a638035df.zip |
use providers PRV_ERROR and format_error/2
Diffstat (limited to 'include')
-rw-r--r-- | include/relx.hrl | 4 |
1 files changed, 2 insertions, 2 deletions
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)). |