diff options
author | Marcin Aman <marcin.aman@gmail.com> | 2020-12-17 12:14:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-17 12:14:40 +0100 |
commit | fea7c42733a339ed19fc7471bb064f53de71cc6b (patch) | |
tree | b3386822c1903026d079b8875bf3508ef20171e4 /plugins/base/src/main/kotlin/resolvers/shared | |
parent | 2f7ee2b82cda39f6bd94c5200b83563418b68dd7 (diff) | |
download | dokka-fea7c42733a339ed19fc7471bb064f53de71cc6b.tar.gz dokka-fea7c42733a339ed19fc7471bb064f53de71cc6b.tar.bz2 dokka-fea7c42733a339ed19fc7471bb064f53de71cc6b.zip |
Multimodule tests (#1670)
* Multimodule tests
* Multimodule tests
Diffstat (limited to 'plugins/base/src/main/kotlin/resolvers/shared')
-rw-r--r-- | plugins/base/src/main/kotlin/resolvers/shared/PackageList.kt | 5 |
1 files changed, 4 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 089bda55..a96cab82 100644 --- a/plugins/base/src/main/kotlin/resolvers/shared/PackageList.kt +++ b/plugins/base/src/main/kotlin/resolvers/shared/PackageList.kt @@ -14,7 +14,10 @@ data class PackageList( if (offlineMode && url.protocol.toLowerCase() != "file") return null - val packageListStream = url.readContent() + val packageListStream = kotlin.runCatching { url.readContent() }.onFailure { + println("Failed to download package-list from $url") + return null + }.getOrThrow() val (params, packages) = packageListStream .bufferedReader() |