File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 22
22
import software .amazon .smithy .model .Model ;
23
23
import software .amazon .smithy .model .shapes .MemberShape ;
24
24
import software .amazon .smithy .model .shapes .UnionShape ;
25
+ import software .amazon .smithy .model .traits .ErrorTrait ;
25
26
import software .amazon .smithy .utils .SmithyInternalApi ;
26
27
import software .amazon .smithy .utils .StringUtils ;
27
28
@@ -177,7 +178,9 @@ public void run() {
177
178
writeUnionMemberInterfaces ();
178
179
writeVisitorType ();
179
180
writeVisitorFunction ();
180
- writeFilterSensitiveLog ();
181
+ if (!this .shape .hasTrait (ErrorTrait .class )) {
182
+ writeFilterSensitiveLog ();
183
+ }
181
184
if (includeValidation ) {
182
185
writeValidate ();
183
186
}
You can’t perform that action at this time.
0 commit comments