From 64f4dac705d8868d21d4ff18a9b7a687330ee6a2 Mon Sep 17 00:00:00 2001 From: TwiN Date: Sat, 12 Nov 2022 14:56:25 -0500 Subject: [PATCH] fix: Wrap error properly (%s -> %w) --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 65820958..2790049b 100644 --- a/config/config.go +++ b/config/config.go @@ -268,7 +268,7 @@ func validateEndpointsConfig(config *Config) error { log.Printf("[config][validateEndpointsConfig] Validating endpoint '%s'", endpoint.Name) } if err := endpoint.ValidateAndSetDefaults(); err != nil { - return fmt.Errorf("invalid endpoint %s: %s", endpoint.DisplayName(), err) + return fmt.Errorf("invalid endpoint %s: %w", endpoint.DisplayName(), err) } } log.Printf("[config][validateEndpointsConfig] Validated %d endpoints", len(config.Endpoints))