Skip to content

Commit

Permalink
Updated the s3 error msg in InvalidArgument error
Browse files Browse the repository at this point in the history
Signed-off-by: Aayush Chouhan <[email protected]>
  • Loading branch information
achouhan09 committed Jan 7, 2025
1 parent dd19d7b commit 9a7934b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/endpoint/s3/ops/s3_put_bucket_lifecycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async function put_bucket_lifecycle(req) {
if (rule.ID?.length === 1) {
if (rule.ID[0].length > config.MAX_RULE_ID_LENGTH) {
dbg.error('Rule should not have ID length exceed allowed limit of ', config.MAX_RULE_ID_LENGTH, ' characters', rule);
throw new S3Error(S3Error.InvalidArgument);
throw new S3Error({ ...S3Error.InvalidArgument, message: 'ID length should not exceed allowed limit of 255' });
} else {
current_rule.id = rule.ID[0];
}
Expand Down

0 comments on commit 9a7934b

Please sign in to comment.