Skip to content

Commit

Permalink
IJMP-1566 Duplicate error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsiaryna Tsytsenia committed Apr 2, 2024
1 parent a50c3aa commit c8ae8dd
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,13 @@ abstract class ExplorerTreeView<Connection: ConnectionConfigBase, U : WorkingSet

override fun <R : Any, Q : Query<R, Unit>> 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
Expand Down

0 comments on commit c8ae8dd

Please sign in to comment.