Skip to content

Commit 54495e4

Browse files
committed
fix: catch all exceptions when closing the watch (redhat-developer#734)
Signed-off-by: Andre Dietisheim <[email protected]>
1 parent fd31ddf commit 54495e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/com/redhat/devtools/intellij/kubernetes/model/ResourceWatch.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ open class ResourceWatch<T>(
111111
logger<ResourceWatch<*>>().debug("Closing watch for $type resources.")
112112
watch.close()
113113
true
114-
} catch (e: KubernetesClientException) {
115-
logger<ResourceWatch<*>>().warn("Failed to close watch for $type resources.", e)
114+
} catch (e: Exception) {
115+
logger<ResourceWatch<*>>().warn("Error when closing watch for $type resources.", e)
116116
false
117117
}
118118
}

0 commit comments

Comments
 (0)