aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_dscv_util.erl
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2014-11-10 09:21:59 -0800
committerJordan Wilberding <[email protected]>2014-11-10 09:21:59 -0800
commit3f93086c57664015b921221647c0f2b56519fd7c (patch)
tree2bb652df3be9f3e2b4187bf073672dad4f7dda10 /src/rlx_dscv_util.erl
parent64b946e351a92bd2686d0a4370c252a53eaa82bd (diff)
parentbf953e417d0771583d95d4d6b6e2697ab44754d6 (diff)
downloadrelx-3f93086c57664015b921221647c0f2b56519fd7c.tar.gz
relx-3f93086c57664015b921221647c0f2b56519fd7c.tar.bz2
relx-3f93086c57664015b921221647c0f2b56519fd7c.zip
Merge pull request #263 from tsloughter/format_error1
move back to using format_error/1
Diffstat (limited to 'src/rlx_dscv_util.erl')
-rw-r--r--src/rlx_dscv_util.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rlx_dscv_util.erl b/src/rlx_dscv_util.erl
index 90153e9..fefdbce 100644
--- a/src/rlx_dscv_util.erl
+++ b/src/rlx_dscv_util.erl
@@ -25,7 +25,7 @@
-module(rlx_dscv_util).
-export([do/2,
- format_error/2]).
+ format_error/1]).
-include("relx.hrl").
@@ -54,8 +54,8 @@ do(ProcessDir, LibDirs) ->
ec_file:type(LibDir))
end, LibDirs)).
--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].