Skip to content

Commit 1e84996

Browse files
committed
improve auto reload registration
1 parent 5ea1914 commit 1e84996

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

ide-common/src/main/kotlin/org/digma/intellij/plugin/updates/ui/UIVersioningService.kt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -519,11 +519,6 @@ class UIVersioningService(val cs: CoroutineScope) : DisposableAdaptor {
519519
val responseCode: Int = connection.getResponseCode()
520520

521521
if (responseCode != HttpURLConnection.HTTP_OK) {
522-
ErrorReporter.getInstance().reportError(
523-
null, "UIVersioningService.downloadAndCopyUiBundleFile",
524-
"download from $url",
525-
mapOf("responseCode" to responseCode.toString())
526-
)
527522
Log.log(logger::warn, "error downloading ui bundle {}, response code {}", url, responseCode)
528523
throw RuntimeException("could not download file from $url, response code $responseCode")
529524
} else {
@@ -550,7 +545,11 @@ class UIVersioningService(val cs: CoroutineScope) : DisposableAdaptor {
550545
return true
551546

552547
} catch (e: Exception) {
553-
ErrorReporter.getInstance().reportError("UIVersioningService.downloadAndCopyUiBundleFile", e)
548+
ErrorReporter.getInstance().reportError(
549+
"UIVersioningService.downloadAndCopyUiBundleFile", e, mapOf(
550+
"download url" to url
551+
)
552+
)
554553
Log.warnWithException(logger, e, "could not download file {}", url)
555554
return false
556555
} finally {

0 commit comments

Comments
 (0)