diff options
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() |