all repos — searchix @ 45432ae8006322e89f89f43423ff26c99d98de10

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix(config): show read URL on parse failure
Alan Pearce alan@alanpearce.eu
Mon, 13 May 2024 22:34:11 +0200
commit

45432ae8006322e89f89f43423ff26c99d98de10

parent

6b40e0c0fa90f11be14a93f1d6275779fd645cac

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M internal/config/config.gointernal/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