Skip to content

Commit 75a6254

Browse files
committed
Fixing build failures
1 parent 95b7f1b commit 75a6254

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqCodeTest/CodeWhispererCodeTestSession.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class CodeWhispererCodeTestSession(val sessionContext: CodeTestSessionContext) {
114114

115115
return codeTestResponseContext
116116
} catch (e: Exception) {
117-
LOG.debug(e) { "Error when creating tests for the current file" }
117+
LOG.debug(e) { "Error while creating zip and uploading to S3" }
118118
throw e
119119
}
120120
}

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/codetest/sessionconfig/CodeTestSessionConfig.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import software.aws.toolkits.jetbrains.services.codewhisperer.codescan.sessionco
2424
import software.aws.toolkits.jetbrains.services.codewhisperer.codescan.sessionconfig.PayloadMetadata
2525
import software.aws.toolkits.jetbrains.services.codewhisperer.codetest.cannotFindBuildArtifacts
2626
import software.aws.toolkits.jetbrains.services.codewhisperer.codetest.cannotFindFile
27+
import software.aws.toolkits.jetbrains.services.codewhisperer.codetest.cannotFindValidFile
2728
import software.aws.toolkits.jetbrains.services.codewhisperer.codetest.fileTooLarge
2829
import software.aws.toolkits.jetbrains.services.codewhisperer.codetest.noFileOpenError
2930
import software.aws.toolkits.jetbrains.services.codewhisperer.language.CodeWhispererProgrammingLanguage
@@ -218,7 +219,7 @@ class CodeTestSessionConfig(
218219

219220
if (maxCountLanguage == null) {
220221
programmingLanguage = CodeWhispererUnknownLanguage.INSTANCE
221-
throw RuntimeException("Amazon Q: doesn't contain valid files to generate tests")
222+
throw cannotFindValidFile("Amazon Q: doesn't contain valid files to generate tests")
222223
}
223224
programmingLanguage = maxCountLanguage
224225
return PayloadMetadata(files, currentTotalFileSize, currentTotalLines, maxCountLanguage.toTelemetryType())

0 commit comments

Comments
 (0)