mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
js domain: Show better duplication warning message
This commit is contained in:
parent
bdeb816397
commit
9ba0cdf3bf
@ -341,8 +341,8 @@ class JavaScriptDomain(Domain):
|
|||||||
def note_object(self, fullname: str, objtype: str, location: Any = None) -> None:
|
def note_object(self, fullname: str, objtype: str, location: Any = None) -> None:
|
||||||
if fullname in self.objects:
|
if fullname in self.objects:
|
||||||
docname = self.objects[fullname][0]
|
docname = self.objects[fullname][0]
|
||||||
logger.warning(__('duplicate object description of %s, other instance in %s'),
|
logger.warning(__('duplicate %s description of %s, other %s in %s'),
|
||||||
fullname, docname, location=location)
|
objtype, fullname, objtype, docname, location=location)
|
||||||
self.objects[fullname] = (self.env.docname, objtype)
|
self.objects[fullname] = (self.env.docname, objtype)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user