From 45432ae8006322e89f89f43423ff26c99d98de10 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 13 May 2024 22:34:11 +0200 Subject: fix(config): show read URL on parse failure --- internal/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/config') diff --git a/internal/config/config.go b/internal/config/config.go index ec04a2c..5ba96d3 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -20,7 +20,7 @@ func (u *URL) UnmarshalText(text []byte) (err error) { u.URL, err = url.Parse(string(text)) if err != nil { - return errors.WithMessage(err, "could not parse URL") + return errors.WithMessagef(err, "could not parse URL %s", string(text)) } return nil -- cgit 1.4.1