We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd19d7b commit 9a7934bCopy full SHA for 9a7934b
src/endpoint/s3/ops/s3_put_bucket_lifecycle.js
@@ -91,7 +91,7 @@ async function put_bucket_lifecycle(req) {
91
if (rule.ID?.length === 1) {
92
if (rule.ID[0].length > config.MAX_RULE_ID_LENGTH) {
93
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);
+ throw new S3Error({ ...S3Error.InvalidArgument, message: 'ID length should not exceed allowed limit of 255' });
95
} else {
96
current_rule.id = rule.ID[0];
97
}
0 commit comments