Skip to content

Commit 142980f

Browse files
committed
Fixing s3 unmarshalling
1 parent d8f9e35 commit 142980f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

services/s3/src/main/java/software/amazon/awssdk/services/s3/transform/S3ExceptionUnmarshaller.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ public AwsServiceException unmarshall(Node in) throws Exception {
5252

5353
AwsServiceException.Builder exception = newException(message).toBuilder();
5454

55-
AwsErrorDetails awsErrorDetails = exception.awsErrorDetails().toBuilder().errorCode(errorCode).build();
56-
57-
return exception.requestId(requestId).awsErrorDetails(awsErrorDetails).build();
55+
return exception.requestId(requestId).awsErrorDetails(AwsErrorDetails.builder().errorCode(errorCode).build()).build();
5856
}
5957
}

0 commit comments

Comments
 (0)