forked from TrueCloudLab/certificates
Fix error message when --kms is not passed.
This commit is contained in:
parent
d03c088ab7
commit
3648c3fab6
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ type Config struct {
|
||||||
func (c *Config) Validate() error {
|
func (c *Config) Validate() error {
|
||||||
switch {
|
switch {
|
||||||
case c.KMS == "":
|
case c.KMS == "":
|
||||||
return errors.New("one of flag `--kms` is required")
|
return errors.New("flag `--kms` is required")
|
||||||
case c.RootFile != "" && c.KeyFile == "":
|
case c.RootFile != "" && c.KeyFile == "":
|
||||||
return errors.New("flag `--root` requires flag `--key`")
|
return errors.New("flag `--root` requires flag `--key`")
|
||||||
case c.KeyFile != "" && c.RootFile == "":
|
case c.KeyFile != "" && c.RootFile == "":
|
||||||
|
|
Loading…
Add table
Reference in a new issue