Skip to content

Commit

Permalink
Update config/config.go
Browse files Browse the repository at this point in the history
Co-authored-by: George Robinson <george.robinson@grafana.com>
Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
  • Loading branch information
TheMeier and grobinson-grafana authored Oct 23, 2024
1 parent fd707eb commit 2c73f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error {
}

if c.Global.RocketchatToken != nil && len(c.Global.RocketchatTokenFile) > 0 {
return fmt.Errorf("at most one of rocketchat_token & rocketchat_token_file must be configured")
return errors.New("at most one of rocketchat_token & rocketchat_token_file must be configured")
}

if c.Global.RocketchatTokenID != nil && len(c.Global.RocketchatTokenIDFile) > 0 {
Expand Down

0 comments on commit 2c73f6d

Please sign in to comment.