on main help sign in
fix: wrap correct error (#2296)

Fixes #2284

commit38c6632b2ddefad3060dd4ec920d7bf1c18d944b authorAndrey Nering <andreynering@users.noreply.github.com> dateMon 23 Feb 2026, 17:42 (8 months ago) parent0ac3d9a
1 file changed+1−1
internal/config/provider.go+1−1
internal/config/provider.go+1−1
@@ -162,7 +162,7 @@ func Providers(cfg *Config) ([]catwalk.Provider, error) {
162162 items, err := catwalkSyncer.Get(ctx)
163163 if err != nil {
164164 catwalkURL := fmt.Sprintf("%s/v2/providers", cmp.Or(os.Getenv("CATWALK_URL"), defaultCatwalkURL))
165− 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
165+ 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
166166 return
167167 }
168168 providers.Append(items...)