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/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/config/config.go') diff --git a/internal/config/config.go b/internal/config/config.go index b2af53c..2822d0c 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -7,7 +7,7 @@ import ( "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 @@ func mustLocalTime(in string) (time LocalTime) { 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) -- cgit 1.4.1