Fix error message when --kms is not passed.

This commit is contained in:
Mariano Cano 2021-02-11 19:24:09 -08:00
parent d03c088ab7
commit 3648c3fab6

View file

@ -51,7 +51,7 @@ type Config struct {
func (c *Config) Validate() error {
switch {
case c.KMS == "":
return errors.New("one of flag `--kms` is required")
return errors.New("flag `--kms` is required")
case c.RootFile != "" && c.KeyFile == "":
return errors.New("flag `--root` requires flag `--key`")
case c.KeyFile != "" && c.RootFile == "":