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 <[email protected]>
Signed-off-by: Christoph Maser <[email protected]>
  • Loading branch information
TheMeier and grobinson-grafana authored Oct 23, 2024
1 parent 2c73f6d commit 9f29e68
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 @@ -369,7 +369,7 @@ func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error {
}

if c.Global.RocketchatTokenID != nil && len(c.Global.RocketchatTokenIDFile) > 0 {
return fmt.Errorf("at most one of rocketchat_token_id & rocketchat_token_id_file must be configured")
return errors.New("at most one of rocketchat_token_id & rocketchat_token_id_file must be configured")
}

names := map[string]struct{}{}
Expand Down

0 comments on commit 9f29e68

Please sign in to comment.