From c8ae8ddc85d35c886a5eed02f9f5c9717440bb43 Mon Sep 17 00:00:00 2001 From: Katsiaryna Tsytsenia Date: Tue, 2 Apr 2024 13:53:41 +0200 Subject: [PATCH] IJMP-1566 Duplicate error messages --- .../ibagroup/formainframe/explorer/ui/ExplorerTreeView.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/eu/ibagroup/formainframe/explorer/ui/ExplorerTreeView.kt b/src/main/kotlin/eu/ibagroup/formainframe/explorer/ui/ExplorerTreeView.kt index d481d4b1..d4072c94 100644 --- a/src/main/kotlin/eu/ibagroup/formainframe/explorer/ui/ExplorerTreeView.kt +++ b/src/main/kotlin/eu/ibagroup/formainframe/explorer/ui/ExplorerTreeView.kt @@ -315,7 +315,13 @@ abstract class ExplorerTreeView> onFetchFailure(query: Q, throwable: Throwable) { getNodesByQueryAndInvalidate(query) - explorer.reportThrowable(throwable, project) + //The ability to show exceptions for JES Explorer has been disabled. + //All messages about exceptions that occur in TreeView components will be displayed using File Explorer. + //This was done to avoid duplication of exception messages, since both explorers have a common EventBus and, + // accordingly, both receive a message about an exception that occurred in one of them. + if (this@ExplorerTreeView is FileExplorerView) { + explorer.reportThrowable(throwable, project) + } } }, disposable = this