We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69a2fd3 commit f3934e6Copy full SHA for f3934e6
alerting/provider/threemagateway/threemagateway.go
@@ -65,8 +65,8 @@ func (cfg *Config) Validate() error {
65
if err := recipient.Validate(); err != nil {
66
return fmt.Errorf("recipients: %s: %w", recipient.Value, err)
67
}
68
- if modeType != ModeTypeBasic && recipient.Type == RecipientTypeId {
69
- return errors.New("recipient type 'id' is only supported in 'basic' mode") // TODO#1464: Maybe add support to fetch and cache IDs in other modes
+ if modeType != ModeTypeBasic && recipient.Type != RecipientTypeId {
+ return fmt.Errorf("recipients: only 'id' recipient type is supported in '%s' mode", cfg.Mode.Value)
70
71
72
0 commit comments