all repos — searchix @ 9015baf955c94a806c01b3dcd5648c8e68ad2685

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

refactor: ensure errors have stack traces

Alan Pearce
commit

9015baf955c94a806c01b3dcd5648c8e68ad2685

parent

7bb77ff5729cc9434afee895a470fd3b4c12e6d1

1 file changed, 2 insertions(+), 1 deletion(-)

changed files
M internal/config/fetcher.gointernal/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 @@ return ChannelNixpkgs, nil
case "download": return Download, nil default: - return UnknownFetcher, fmt.Errorf("unsupported fetcher %s", name) + return UnknownFetcher, errors.Errorf("unsupported fetcher %s", name) } }