ci(xref): handle no_such_module

This commit is contained in:
William Yang 2022-09-02 10:27:31 +02:00
parent fef088220c
commit 9dd5e26ddf
1 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,8 @@ main(_) ->
[case xref:remove_module(Name, M) of [case xref:remove_module(Name, M) of
ok -> ok; ok -> ok;
{error, M, _R} -> ok %% but in doc it should return '{error, module(), Reason}`
{error, xref_base, {no_such_module, M}} -> ok
end || M <- ExclMods end || M <- ExclMods
], ],
ModuleInfos = xref:info(Name, modules), ModuleInfos = xref:info(Name, modules),