From 9015baf955c94a806c01b3dcd5648c8e68ad2685 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 12 Mar 2025 22:39:51 +0100 Subject: refactor: ensure errors have stack traces --- internal/config/fetcher.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/config/fetcher.go') diff --git a/internal/config/fetcher.go b/internal/config/fetcher.go index fd95b32..fca6cb1 100644 --- a/internal/config/fetcher.go +++ b/internal/config/fetcher.go @@ -4,6 +4,7 @@ import ( "fmt" "github.com/stoewer/go-strcase" + "gitlab.com/tozd/go/errors" ) type Fetcher int @@ -37,7 +38,7 @@ func ParseFetcher(name string) (Fetcher, error) { case "download": return Download, nil default: - return UnknownFetcher, fmt.Errorf("unsupported fetcher %s", name) + return UnknownFetcher, errors.Errorf("unsupported fetcher %s", name) } } -- cgit 1.4.1