Skip to content

Commit

Permalink
Updated error msg as per aws
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 67db761 commit d05cb11
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 @@ -97,7 +97,7 @@ async function put_bucket_lifecycle(req) {

// Check for duplicate ID in the rules
if (id_set.has(current_rule.id)) {
dbg.error('Rules should not have duplicate IDs. Duplicate ID found: ', current_rule.id);
dbg.error('Rule ID must be unique. Found same ID for more than one rule: ', current_rule.id);
throw new S3Error(S3Error.InvalidArgument);
}
id_set.add(current_rule.id);
Expand Down

0 comments on commit d05cb11

Please sign in to comment.