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

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