aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
authorMarcin Aman <marcin.aman@gmail.com>2021-02-08 10:24:06 +0100
committerMarcin Aman <marcin.aman@gmail.com>2021-02-08 10:24:06 +0100
commitfb016fbb801a0aefa684874ea946b5f9d9a65278 (patch)
tree695a439ada00bbc23d561bd28e15cf8b8e7093a0 /plugins/base
parentcb010f5988667ec1114c11a09815538361f10d48 (diff)
downloaddokka-fb016fbb801a0aefa684874ea946b5f9d9a65278.tar.gz
dokka-fb016fbb801a0aefa684874ea946b5f9d9a65278.tar.bz2
dokka-fb016fbb801a0aefa684874ea946b5f9d9a65278.zip
More explicit exception message when dokka failes to get package list
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/src/main/kotlin/resolvers/shared/PackageList.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/resolvers/shared/PackageList.kt b/plugins/base/src/main/kotlin/resolvers/shared/PackageList.kt
index a96cab82..a06365eb 100644
--- a/plugins/base/src/main/kotlin/resolvers/shared/PackageList.kt
+++ b/plugins/base/src/main/kotlin/resolvers/shared/PackageList.kt
@@ -15,7 +15,8 @@ data class PackageList(
return null
val packageListStream = kotlin.runCatching { url.readContent() }.onFailure {
- println("Failed to download package-list from $url")
+ println("Failed to download package-list from $url, this might suggest that remote resource is not available," +
+ " module is empty or dokka output got corrupted")
return null
}.getOrThrow()