Skip to content

Commit 3e56ab6

Browse files
authored
Call parseErrorBody when parsing error structures (#597)
1 parent 7badc6b commit 3e56ab6

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)