From 38c6632b2ddefad3060dd4ec920d7bf1c18d944b Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Mon, 23 Feb 2026 17:42:39 -0300 Subject: [PATCH] fix: wrap correct error (#2296) Fixes #2284 --- internal/config/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/provider.go b/internal/config/provider.go index bd960e0c27ca11d5ef376c221717f061ad3deb47..645f863628edb8335782fa6c4424ee36f1b10f0e 100644 --- a/internal/config/provider.go +++ b/internal/config/provider.go @@ -162,7 +162,7 @@ func Providers(cfg *Config) ([]catwalk.Provider, error) { items, err := catwalkSyncer.Get(ctx) if err != nil { catwalkURL := fmt.Sprintf("%s/v2/providers", cmp.Or(os.Getenv("CATWALK_URL"), defaultCatwalkURL)) - errs = append(errs, fmt.Errorf("Crush was unable to fetch an updated list of providers from %s. Consider setting CRUSH_DISABLE_PROVIDER_AUTO_UPDATE=1 to use the embedded providers bundled at the time of this Crush release. You can also update providers manually. For more info see crush update-providers --help.\n\nCause: %w", catwalkURL, providerErr)) //nolint:staticcheck + errs = append(errs, fmt.Errorf("Crush was unable to fetch an updated list of providers from %s. Consider setting CRUSH_DISABLE_PROVIDER_AUTO_UPDATE=1 to use the embedded providers bundled at the time of this Crush release. You can also update providers manually. For more info see crush update-providers --help.\n\nCause: %w", catwalkURL, err)) //nolint:staticcheck return } providers.Append(items...)