aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2015-04-17 18:51:33 -0500
committerTristan Sloughter <[email protected]>2015-04-17 18:51:33 -0500
commit371b6c6904ce628b737f9a9e79af84f0f50c783e (patch)
treedc61861a0ffe400e94d20d1171fd1f8c5dfda5cb /src
parent9bb67958174e8da27e83318967a35323b746d62f (diff)
downloadrelx-371b6c6904ce628b737f9a9e79af84f0f50c783e.tar.gz
relx-371b6c6904ce628b737f9a9e79af84f0f50c783e.tar.bz2
relx-371b6c6904ce628b737f9a9e79af84f0f50c783e.zip
handle directory that doesn't exist in dscv_util
Diffstat (limited to 'src')
-rw-r--r--src/rlx_dscv_util.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rlx_dscv_util.erl b/src/rlx_dscv_util.erl
index fefdbce..6fe2712 100644
--- a/src/rlx_dscv_util.erl
+++ b/src/rlx_dscv_util.erl
@@ -72,12 +72,14 @@ format_detail({not_a_directory, EbinDir}) ->
-spec discover_dir(process_fun([term()] | term()),
file:name(),
- directory | file | symlink) ->
+ directory | file | symlink | undefined) ->
[{ok, term()}
| {error, Reason::term()}]
| []
| {ok, term()}
| {error, Reason::term()}.
+discover_dir(_ProcessDir, _File, undefined) ->
+ [];
discover_dir(ProcessDir, File, directory) ->
case ProcessDir(File, directory) of
{ok, Result, true} ->