mirror of
https://github.com/processone/ejabberd
synced 2025-10-04 02:09:33 +02:00
Handle error case from code:lib_dir in ResolveDepPath in rebar.config.script
This commit is contained in:
parent
88e6f1c6aa
commit
d0bfcbbfd8
1 changed files with 4 additions and 3 deletions
|
@ -233,9 +233,10 @@ ResolveDepPath = case {SystemDeps, IsRebar3} of
|
||||||
{true, _} ->
|
{true, _} ->
|
||||||
fun("deps/" ++ Rest) ->
|
fun("deps/" ++ Rest) ->
|
||||||
Slash = string:str(Rest, "/"),
|
Slash = string:str(Rest, "/"),
|
||||||
code:lib_dir(
|
case code:lib_dir(string:sub_string(Rest, 1, Slash -1)) of
|
||||||
string:sub_string(Rest, 1, Slash -1)) ++
|
{error, _} -> Rest;
|
||||||
string:sub_string(Rest, Slash);
|
V -> V ++ string:sub_string(Rest, Slash)
|
||||||
|
end;
|
||||||
(Path) ->
|
(Path) ->
|
||||||
Path
|
Path
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue