Skip to content

Commit

Permalink
s3: better error message for refresh_secrets
Browse files Browse the repository at this point in the history
Co-authored-by: wojas <[email protected]>
  • Loading branch information
ahouene and wojas authored Sep 14, 2023
1 parent a040cf7 commit 0c624b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (o Options) Check() error {
return fmt.Errorf("s3 storage.options: credentials are required, fill either (access_key and secret_key) or (access_key_filename and secret_key_filename)")
}
if hasSecretsCreds && o.SecretsRefreshInterval < time.Second {
return fmt.Errorf("s3 storage.options: field refresh_secrets is required when using secret credentials")
return fmt.Errorf("s3 storage.options: field secrets_refresh_interval must be at least 1s")
}
if o.Bucket == "" {
return fmt.Errorf("s3 storage.options: bucket is required")
Expand Down

0 comments on commit 0c624b3

Please sign in to comment.