Skip to content

Commit 0c624b3

Browse files
ahouenewojas
andauthored
s3: better error message for refresh_secrets
Co-authored-by: wojas <[email protected]>
1 parent a040cf7 commit 0c624b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/s3/s3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func (o Options) Check() error {
118118
return fmt.Errorf("s3 storage.options: credentials are required, fill either (access_key and secret_key) or (access_key_filename and secret_key_filename)")
119119
}
120120
if hasSecretsCreds && o.SecretsRefreshInterval < time.Second {
121-
return fmt.Errorf("s3 storage.options: field refresh_secrets is required when using secret credentials")
121+
return fmt.Errorf("s3 storage.options: field secrets_refresh_interval must be at least 1s")
122122
}
123123
if o.Bucket == "" {
124124
return fmt.Errorf("s3 storage.options: bucket is required")

0 commit comments

Comments
 (0)