diff options
Diffstat (limited to 'src/rlx_rel_discovery.erl')
-rw-r--r-- | src/rlx_rel_discovery.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rlx_rel_discovery.erl b/src/rlx_rel_discovery.erl index dc6210f..1cfdc87 100644 --- a/src/rlx_rel_discovery.erl +++ b/src/rlx_rel_discovery.erl @@ -21,7 +21,7 @@ -module(rlx_rel_discovery). -export([do/3, - format_error/2]). + format_error/1]). -include("relx.hrl"). @@ -47,8 +47,8 @@ do(State, LibDirs, AppMeta) -> resolve_rel_metadata(State, LibDirs, AppMeta) end. --spec format_error([ErrorDetail::term()], rlx_state:t()) -> iolist(). -format_error(ErrorDetails, _) +-spec format_error([ErrorDetail::term()]) -> iolist(). +format_error(ErrorDetails) when erlang:is_list(ErrorDetails) -> [[format_detail(ErrorDetail), "\n"] || ErrorDetail <- ErrorDetails]. |