Skip to content

Commit 5ba6cf9

Browse files
samgst-amazonrli
andauthored
Update plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/BrowserConnector.kt
Co-authored-by: Richard Li <[email protected]>
1 parent a2c8672 commit 5ba6cf9

File tree

1 file changed

+3
-1
lines changed
  • plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview

1 file changed

+3
-1
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/BrowserConnector.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,9 @@ class BrowserConnector(
401401
val cause = if (e is CompletionException) e.cause else e
402402

403403
// dont post error to UI if user cancels export
404-
if (!(cause is ResponseErrorException && cause.responseError.message == "Export cancelled by user")) {
404+
if (cause is ResponseErrorException && cause.responseError.code == "ResponseErrorCode.RequestCancelled) {
405+
return@whenComplete
406+
}
405407
LOG.error { "Failed to perform chat tab bar action $e" }
406408
params.tabId?.let {
407409
browser.postChat(chatCommunicationManager.getErrorUiMessage(it, e, null))

0 commit comments

Comments
 (0)