We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 961e6ca commit d8733a7Copy full SHA for d8733a7
server/aws-lsp-codewhisperer/src/language-server/agenticChat/agenticChatController.ts
@@ -3473,7 +3473,7 @@ export class AgenticChatController implements ChatHandlers {
3473
metric: Metric<CombinedConversationEvent>,
3474
agenticCodingMode: boolean
3475
): Promise<ChatResult | ResponseError<ChatResult>> {
3476
- const errorMessage = getErrorMsg(err) ?? GENERIC_ERROR_MS
+ const errorMessage = (getErrorMsg(err) ?? GENERIC_ERROR_MS).replace(/[\r\n]+/g, ' ') // replace new lines with empty space
3477
const requestID = getRequestID(err) ?? ''
3478
metric.setDimension('cwsprChatResponseCode', getHttpStatusCode(err) ?? 0)
3479
metric.setDimension('languageServerVersion', this.#features.runtime.serverInfo.version)
0 commit comments