refactor: ensure errors have stack traces
1 file changed, 2 insertions(+), 2 deletions(-)
changed files
M internal/config/config.go → internal/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)