diff options
author | Tristan Sloughter <[email protected]> | 2014-11-03 20:47:54 -0600 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2014-11-06 10:03:08 -0600 |
commit | 79bbf33cbd46c9a1beeae00424e14969608385ba (patch) | |
tree | 19e76b0116164ad7fd037b93f34e15ac297bb61a /src/rlx_config.erl | |
parent | f74f15b95c7dd6b27cd415909cf644977ebb88c1 (diff) | |
download | relx-79bbf33cbd46c9a1beeae00424e14969608385ba.tar.gz relx-79bbf33cbd46c9a1beeae00424e14969608385ba.tar.bz2 relx-79bbf33cbd46c9a1beeae00424e14969608385ba.zip |
fix modules thta still were using format_error/1
Diffstat (limited to 'src/rlx_config.erl')
-rw-r--r-- | src/rlx_config.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rlx_config.erl b/src/rlx_config.erl index c838c18..307d2b6 100644 --- a/src/rlx_config.erl +++ b/src/rlx_config.erl @@ -25,7 +25,7 @@ %% API -export([do/1, - format_error/1]). + format_error/2]). -include("relx.hrl"). @@ -46,11 +46,11 @@ do(State) -> load_config(ConfigFile, State) end. --spec format_error(Reason::term()) -> iolist(). -format_error({consult, ConfigFile, Reason}) -> +-spec format_error(Reason::term(), rlx_state:t()) -> iolist(). +format_error({consult, ConfigFile, Reason}, _) -> io_lib:format("Unable to read file ~s: ~s", [ConfigFile, file:format_error(Reason)]); -format_error({invalid_term, Term}) -> +format_error({invalid_term, Term}, _) -> io_lib:format("Invalid term in config file: ~p", [Term]). %%%=================================================================== |