Skip to content

Commit 2e06138

Browse files
author
luigi
committed
fix
1 parent c10d1c8 commit 2e06138

File tree

1 file changed

+2
-2
lines changed
  • codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/service/ktor

1 file changed

+2
-2
lines changed

codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/service/ktor/Routing.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ internal fun KtorStubGenerator.writeRouting() {
130130
write(
131131
"throw #T(ex?.message ?: #S, ex)",
132132
RuntimeTypes.KtorServerCore.BadRequestException,
133-
"Malformed CBOR input",
133+
"Malformed input data",
134134
)
135135
}
136136
if (ctx.model.expectShape(shape.input.get()).allMembers.isNotEmpty()) {
@@ -155,7 +155,7 @@ internal fun KtorStubGenerator.writeRouting() {
155155
write(
156156
"throw #T(ex?.message ?: #S, ex)",
157157
RuntimeTypes.KtorServerCore.BadRequestException,
158-
"Malformed CBOR output",
158+
"Malformed output data",
159159
)
160160
}
161161
call { readResponseHttpHeader("responseObj", shape.output.get(), writer) }

0 commit comments

Comments
 (0)