git: af92816e18 - main - [macros]: Report faulting anchor in warning

Fernando Apesteguía <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/doc/commit/?id=af92816e18893fd4d6caa44a39ac63a1f2f9a5e5

commit af92816e18893fd4d6caa44a39ac63a1f2f9a5e5
Author:     Fernando Apesteguía <[email protected]>
AuthorDate: 2024-09-23 12:27:57 +0000
Commit:     Fernando Apesteguía <[email protected]>
CommitDate: 2024-09-23 16:11:45 +0000

    [macros]: Report faulting anchor in warning
---
 shared/lib/InterDocumentReferencesMacro/extension.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shared/lib/InterDocumentReferencesMacro/extension.rb b/shared/lib/InterDocumentReferencesMacro/extension.rb
index e05cfe0a6f..7d74ede1bb 100644
--- a/shared/lib/InterDocumentReferencesMacro/extension.rb
+++ b/shared/lib/InterDocumentReferencesMacro/extension.rb
@@ -13,7 +13,7 @@ class InterDocumentReferencesMacro < Asciidoctor::Extensions::InlineMacroProcess
     text = attrs[2]
 
     if text.nil? || text.empty?
-      warn "Crossref needs a description."
+      warn "Crossref '#{anchor}' needs a description."
     end
 
     doc = parent.document
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.