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(+), 2 deletions(-)

changed files
M internal/config/config.gointernal/config/config.go
@@ -7,7 +7,7 @@ "os"
"time" "github.com/pelletier/go-toml/v2" - "github.com/pkg/errors" + "gitlab.com/tozd/go/errors" "go.alanpearce.eu/x/log" )
@@ -103,7 +103,7 @@
return } -func GetConfig(filename string, log *log.Logger) (*Config, error) { +func GetConfig(filename string, log *log.Logger) (*Config, errors.E) { config := DefaultConfig if filename != "" { log.Debug("reading config", "filename", filename)