Skip to content

Commit 3e4e11f

Browse files
fix: improve error message for toml invalid webhook url
1 parent e816f4e commit 3e4e11f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (d *DiscordWebhookUrl) UnmarshalTOML(data any) error {
122122
return nil
123123
}
124124

125-
return fmt.Errorf("provided %T, expected string or []string", data)
125+
return fmt.Errorf("the value %v is not a string or []string", data)
126126
}
127127

128128
func ParseConfiguration(configPath string) (Configuration, error) {

0 commit comments

Comments
 (0)