diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2019-05-20 11:48:07 +0200 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2019-05-20 11:48:07 +0200 |
commit | 45efbde5bb37c52d08106450a14ebbd54a23c928 (patch) | |
tree | a5f579548a689518bf799f1efd7b57eeea128c5c /core/src/main/kotlin | |
parent | fd6c34d92b7409d3aedd9416c7b06f9c48fe2631 (diff) | |
download | dokka-45efbde5bb37c52d08106450a14ebbd54a23c928.tar.gz dokka-45efbde5bb37c52d08106450a14ebbd54a23c928.tar.bz2 dokka-45efbde5bb37c52d08106450a14ebbd54a23c928.zip |
Update "Can't find node ..." warning message
Diffstat (limited to 'core/src/main/kotlin')
-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 } |