Skip to content

Commit 9e4e979

Browse files
committed
fix(dev): keep the message on the throwable func
1 parent eedfe23 commit 9e4e979

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/FeatureDevExceptions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ internal fun codeGenerationFailedError(): Nothing =
2525
throw FeatureDevException(message("amazonqFeatureDev.code_generation.failed_generation"))
2626

2727
internal fun noChangeRequiredException(): Nothing =
28-
throw FeatureDevException(message("amazonqFeatureDev.exception.no_change_required_exception"))
28+
throw NoChangeRequiredException(message("amazonqFeatureDev.exception.no_change_required_exception"), cause = null)
2929

3030
internal fun uploadCodeError(): Nothing =
3131
throw FeatureDevException(message("amazonqFeatureDev.exception.upload_code"))

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/controller/FeatureDevController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ class FeatureDevController(
437437
is NoChangeRequiredException -> {
438438
messenger.sendAnswer(
439439
tabId = tabId,
440-
message = message("amazonqFeatureDev.exception.no_change_required_exception"),
440+
message = err.message,
441441
messageType = FeatureDevMessageType.Answer,
442442
canBeVoted = true
443443
)

0 commit comments

Comments
 (0)