Correct error message for missing OpsGenie API key
This commit is contained in:
parent
3e7d614eb2
commit
7c9700e76c
|
@ -306,7 +306,7 @@ func (c *OpsGenieConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if c.APIKey == "" {
|
if c.APIKey == "" {
|
||||||
return fmt.Errorf("missing service key in OpsGenie config")
|
return fmt.Errorf("missing API key in OpsGenie config")
|
||||||
}
|
}
|
||||||
return checkOverflow(c.XXX, "opsgenie config")
|
return checkOverflow(c.XXX, "opsgenie config")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue