Skip to content

Commit

Permalink
fix: improve error message for toml invalid webhook url
Browse files Browse the repository at this point in the history
  • Loading branch information
nayyara-airlangga committed May 29, 2024
1 parent e816f4e commit 3e4e11f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (d *DiscordWebhookUrl) UnmarshalTOML(data any) error {
return nil
}

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

func ParseConfiguration(configPath string) (Configuration, error) {
Expand Down

0 comments on commit 3e4e11f

Please sign in to comment.