aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_rel_discovery.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2014-11-03 20:47:54 -0600
committerTristan Sloughter <[email protected]>2014-11-06 10:03:08 -0600
commit79bbf33cbd46c9a1beeae00424e14969608385ba (patch)
tree19e76b0116164ad7fd037b93f34e15ac297bb61a /src/rlx_rel_discovery.erl
parentf74f15b95c7dd6b27cd415909cf644977ebb88c1 (diff)
downloadrelx-79bbf33cbd46c9a1beeae00424e14969608385ba.tar.gz
relx-79bbf33cbd46c9a1beeae00424e14969608385ba.tar.bz2
relx-79bbf33cbd46c9a1beeae00424e14969608385ba.zip
fix modules thta still were using format_error/1
Diffstat (limited to 'src/rlx_rel_discovery.erl')
-rw-r--r--src/rlx_rel_discovery.erl10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/rlx_rel_discovery.erl b/src/rlx_rel_discovery.erl
index b7c15bc..dc6210f 100644
--- a/src/rlx_rel_discovery.erl
+++ b/src/rlx_rel_discovery.erl
@@ -18,14 +18,10 @@
%%% @author Eric Merritt <[email protected]>
%%% @copyright (C) 2012 Erlware, LLC.
%%%
-%%% @doc This provider uses the lib_dir setting of the state. It searches the
-%%% Lib Dirs looking for all OTP Applications that are available. When it finds
-%%% those OTP Applications it loads the information about them and adds them to
-%%% the state of available apps. This implements the provider behaviour.
-module(rlx_rel_discovery).
-export([do/3,
- format_error/1]).
+ format_error/2]).
-include("relx.hrl").
@@ -51,8 +47,8 @@ do(State, LibDirs, AppMeta) ->
resolve_rel_metadata(State, LibDirs, AppMeta)
end.
--spec format_error([ErrorDetail::term()]) -> iolist().
-format_error(ErrorDetails)
+-spec format_error([ErrorDetail::term()], rlx_state:t()) -> iolist().
+format_error(ErrorDetails, _)
when erlang:is_list(ErrorDetails) ->
[[format_detail(ErrorDetail), "\n"] || ErrorDetail <- ErrorDetails].