Skip to content

Commit ceb489e

Browse files
authored
fix: return throwDefaultError as never (#1155)
1 parent 958ffaa commit ceb489e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.changeset/polite-beans-call.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/HttpProtocolGeneratorUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ static Set<StructureShape> generateUnifiedErrorDispatcher(
357357

358358
// Get the protocol specific error location for retrieving contents.
359359
String errorLocation = bodyErrorLocationModifier.apply(context, "parsedBody");
360-
writer.openBlock("return throwDefaultError({", "})", () -> {
360+
writer.openBlock("return throwDefaultError({", "}) as never", () -> {
361361
writer.write("output,");
362362
if (errorLocation.equals("parsedBody")) {
363363
writer.write("parsedBody,");

0 commit comments

Comments
 (0)