diff --git a/clients/osv/src/main/kotlin/OsvService.kt b/clients/osv/src/main/kotlin/OsvService.kt index 0508133798490..813937fe5a519 100644 --- a/clients/osv/src/main/kotlin/OsvService.kt +++ b/clients/osv/src/main/kotlin/OsvService.kt @@ -114,7 +114,8 @@ class OsvService(serverUrl: String? = null, httpClient: OkHttpClient? = null) { } override fun onFailure(call: Call, t: Throwable) { - failureThrowable.set(t) + val exception = IOException("Could not get vulnerability information for '$id'.", t) + failureThrowable.set(exception) latch.countDown() } })