diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/kotlin/Kotlin/DeclarationLinkResolver.kt | 7 | ||||
-rw-r--r-- | core/src/main/kotlin/Model/DocumentationReference.kt | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/core/src/main/kotlin/Kotlin/DeclarationLinkResolver.kt b/core/src/main/kotlin/Kotlin/DeclarationLinkResolver.kt index c3a84e57..32084eea 100644 --- a/core/src/main/kotlin/Kotlin/DeclarationLinkResolver.kt +++ b/core/src/main/kotlin/Kotlin/DeclarationLinkResolver.kt @@ -34,14 +34,15 @@ class DeclarationLinkResolver val signature = elementSignatureProvider.signature(symbol) val referencedAt = fromDescriptor.signatureWithSourceLocation() - return ContentNodeLazyLink(href, { -> + return ContentNodeLazyLink(href) { -> val target = refGraph.lookup(signature) if (target == null) { - logger.warn("Can't find node by signature `$signature`, referenced at $referencedAt") + logger.warn("Can't find node by signature `$signature`, referenced at $referencedAt. " + + "This is probably caused by invalid configuration of cross-module dependencies") } target - }) + } } if ("/" in href) { return ContentExternalLink(href) diff --git a/core/src/main/kotlin/Model/DocumentationReference.kt b/core/src/main/kotlin/Model/DocumentationReference.kt index 1f2fc0c9..0b890a78 100644 --- a/core/src/main/kotlin/Model/DocumentationReference.kt +++ b/core/src/main/kotlin/Model/DocumentationReference.kt @@ -103,7 +103,8 @@ class NodeReferenceGraph { fun lookupOrWarn(signature: String, logger: DokkaLogger): DocumentationNode? { val result = nodeMap[signature] if (result == null) { - logger.warn("Can't find node by signature `$signature`") + logger.warn("Can't find node by signature `$signature`." + + "This is probably caused by invalid configuration of cross-module dependencies") } return result } |