diff options
author | Marcin Aman <marcin.aman@gmail.com> | 2021-02-08 10:24:06 +0100 |
---|---|---|
committer | Marcin Aman <marcin.aman@gmail.com> | 2021-02-08 10:24:06 +0100 |
commit | fb016fbb801a0aefa684874ea946b5f9d9a65278 (patch) | |
tree | 695a439ada00bbc23d561bd28e15cf8b8e7093a0 /plugins/base | |
parent | cb010f5988667ec1114c11a09815538361f10d48 (diff) | |
download | dokka-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.kt | 3 |
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() |