Skip to content

Commit 9a7934b

Browse files
committed
Updated the s3 error msg in InvalidArgument error
Signed-off-by: Aayush Chouhan <[email protected]>
1 parent dd19d7b commit 9a7934b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/endpoint/s3/ops/s3_put_bucket_lifecycle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ async function put_bucket_lifecycle(req) {
9191
if (rule.ID?.length === 1) {
9292
if (rule.ID[0].length > config.MAX_RULE_ID_LENGTH) {
9393
dbg.error('Rule should not have ID length exceed allowed limit of ', config.MAX_RULE_ID_LENGTH, ' characters', rule);
94-
throw new S3Error(S3Error.InvalidArgument);
94+
throw new S3Error({ ...S3Error.InvalidArgument, message: 'ID length should not exceed allowed limit of 255' });
9595
} else {
9696
current_rule.id = rule.ID[0];
9797
}

0 commit comments

Comments
 (0)