Skip to content

Commit f610602

Browse files
committed
docs: improve comment
1 parent c91d35b commit f610602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/aws-lsp-codewhisperer/src/language-server/agenticChat/agenticChatController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ export class AgenticChatController implements ChatHandlers {
11441144
this.#telemetryController.emitMessageResponseError(tabId, metric.metric, err.requestId, err.message)
11451145
}
11461146

1147-
// return non-model errors back to the client.
1147+
// return non-model errors back to the client as errors
11481148
if (!(err instanceof ModelServiceException)) {
11491149
this.#log(`unknown error ${err instanceof Error ? JSON.stringify(err) : 'unknown'}`)
11501150
this.#debug(`stack ${err instanceof Error ? JSON.stringify(err.stack) : 'unknown'}`)
@@ -1177,7 +1177,7 @@ export class AgenticChatController implements ChatHandlers {
11771177
}
11781178

11791179
const backendError = err.cause
1180-
// Send the backend error message directly to the client in chat.
1180+
// Send the backend error message directly to the client to be displayed in chat.
11811181
return {
11821182
type: 'answer',
11831183
body: backendError.message,

0 commit comments

Comments
 (0)