Skip to content

Commit c69220c

Browse files
trivikrsrchase
authored andcommitted
Call parseErrorBody when parsing error structures (smithy-lang#597)
1 parent ea065b0 commit c69220c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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
@@ -342,7 +342,7 @@ static Set<StructureShape> generateErrorDispatcher(
342342
writer.openBlock("const parsedOutput: any = {", "};",
343343
() -> {
344344
writer.write("...output,");
345-
writer.write("body: await parseBody(output.body, context)");
345+
writer.write("body: await parseErrorBody(output.body, context)");
346346
});
347347
}
348348

0 commit comments

Comments
 (0)