You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqCodeTest/CodeWhispererUTGChatManager.kt
Copy file name to clipboardExpand all lines: plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/util/CodeWhispererZipUploadManager.kt
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -208,7 +208,10 @@ class CodeWhispererZipUploadManager(private val project: Project) {
208
208
}
209
209
210
210
// If we've exhausted all retries, handle the last exception
211
-
val errorMessage = getTelemetryErrorMessage(lastException!!, featureUseCase)
211
+
val errorMessage = getTelemetryErrorMessage(
212
+
lastException ?:Exception("Unknown error"),
213
+
featureUseCase
214
+
)
212
215
when (featureUseCase) {
213
216
CodeWhispererConstants.FeatureName.CODE_REVIEW->
214
217
codeScanServerException("CreateUploadUrlException after $maxRetryAttempts attempts: $errorMessage")
0 commit comments