diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2018-01-10 16:34:01 +0100 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2018-01-10 16:34:16 +0100 |
commit | d0bfcbbfd8a6e7ee6213112e4078b020e4e1d15d (patch) | |
tree | 3592315d7b6c3b729916a9bdc09ba01bc53163a5 /rebar.config.script | |
parent | Update mix deps (diff) |
Handle error case from code:lib_dir in ResolveDepPath in rebar.config.script
Diffstat (limited to 'rebar.config.script')
-rw-r--r-- | rebar.config.script | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rebar.config.script b/rebar.config.script index 85f918ff..ba374e5c 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -233,9 +233,10 @@ ResolveDepPath = case {SystemDeps, IsRebar3} of {true, _} -> fun("deps/" ++ Rest) -> Slash = string:str(Rest, "/"), - code:lib_dir( - string:sub_string(Rest, 1, Slash -1)) ++ - string:sub_string(Rest, Slash); + case code:lib_dir(string:sub_string(Rest, 1, Slash -1)) of + {error, _} -> Rest; + V -> V ++ string:sub_string(Rest, Slash) + end; (Path) -> Path end; |