diff options
author | Alan Pearce | 2024-05-13 22:34:11 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-13 22:34:11 +0200 |
commit | 45432ae8006322e89f89f43423ff26c99d98de10 (patch) | |
tree | cc8c4fe61db2306280ba3c72f9d5384b00d582a6 /internal | |
parent | 6b40e0c0fa90f11be14a93f1d6275779fd645cac (diff) | |
download | searchix-45432ae8006322e89f89f43423ff26c99d98de10.tar.lz searchix-45432ae8006322e89f89f43423ff26c99d98de10.tar.zst searchix-45432ae8006322e89f89f43423ff26c99d98de10.zip |
fix(config): show read URL on parse failure
Diffstat (limited to 'internal')
-rw-r--r-- | internal/config/config.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |