Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit 2bd3609

Browse files
committed
better error message
1 parent bbcaa12 commit 2bd3609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/objstore/providers/cos/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (c *Config) Validate() error {
3434
}
3535

3636
if empty(c.Bucket) || empty(c.AppID) || empty(c.Region) || empty(c.SecretID) || empty(c.SecretKey) {
37-
return errors.New("cos config ")
37+
return errors.New("invalid cos configuration, bucket, app_id, region, secret_id and secret_key must be set")
3838
}
3939
return nil
4040
}

0 commit comments

Comments
 (0)