summaryrefslogtreecommitdiff
path: root/lib/erl_docgen
diff options
context:
space:
mode:
authorLukas Larsson <lukas@erlang.org>2020-03-23 14:30:16 +0100
committerLukas Larsson <lukas@erlang.org>2020-03-27 11:02:23 +0100
commit8eabc7849d5eda55e4d2e913db38b93132ad46de (patch)
tree1656b099279eb5de488ac01a12b34d1f22478a89 /lib/erl_docgen
parentd10631b54cb06bcf24f7ae6726e1234ac535d2a6 (diff)
downloaderlang-8eabc7849d5eda55e4d2e913db38b93132ad46de.tar.gz
docgen: Fix jinterface link validation
Diffstat (limited to 'lib/erl_docgen')
-rwxr-xr-xlib/erl_docgen/priv/bin/validate_links.escript5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/erl_docgen/priv/bin/validate_links.escript b/lib/erl_docgen/priv/bin/validate_links.escript
index 60296a7c72..41d533fb58 100755
--- a/lib/erl_docgen/priv/bin/validate_links.escript
+++ b/lib/erl_docgen/priv/bin/validate_links.escript
@@ -264,6 +264,9 @@ validate_link(Filename, "seeerl" = LinkType, Line, Link, CachedFiles) ->
TargetInfo = read_link(Line, ParsedLink, CachedFiles),
validate_type(Line,LinkType,TargetInfo),
validate_marker(Line,ParsedLink,TargetInfo);
+validate_link({"jinterface","jinterface_users_guide"},"seefile",_, _, _) ->
+ %% Skip links to java documentation
+ ok;
validate_link(Filename, LinkType, Line, Link, CachedFiles) ->
ParsedLink = parse_link(Filename, maps:new(), Link),
TargetInfo = read_link(Line, ParsedLink, CachedFiles),
@@ -298,7 +301,7 @@ read_link(Line, {App,Mod,_}, Cache) ->
error ->
%% fail(Line, "Could not find: ~p~p~n~p~n",
%% [App,Mod,lists:sort(maps:keys(Cache))]),
- fail(Line, "Could not find: ~p~p~n",[App,Mod]),
+ fail(Line, "Could not find: ~s:~s~n",[App,Mod]),
halt(1)
end.