Skip to content

Commit

Permalink
Call parseErrorBody when parsing error structures (smithy-lang#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored and srchase committed Mar 17, 2023
1 parent ea065b0 commit c69220c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ static Set<StructureShape> generateErrorDispatcher(
writer.openBlock("const parsedOutput: any = {", "};",
() -> {
writer.write("...output,");
writer.write("body: await parseBody(output.body, context)");
writer.write("body: await parseErrorBody(output.body, context)");
});
}

Expand Down

0 comments on commit c69220c

Please sign in to comment.