From 3e4e11f693a238fd9321738d1cf9c0319a9e0e4d Mon Sep 17 00:00:00 2001 From: Nayyara Airlangga Date: Thu, 30 May 2024 03:08:59 +0700 Subject: [PATCH] fix: improve error message for toml invalid webhook url --- configuration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration.go b/configuration.go index 49f220c..a365f4d 100644 --- a/configuration.go +++ b/configuration.go @@ -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) {