@@ -196,7 +196,7 @@ func loadProviders(autoUpdateDisabled bool, client ProviderClient, path string)
providers, err := catwalkGetAndSave()
if err != nil {
catwalkUrl := fmt.Sprintf("%s/providers", cmp.Or(os.Getenv("CATWALK_URL"), defaultCatwalkURL))
- return nil, fmt.Errorf("crush was unable to fetch an updated list of providers from %s. Consider setting CRUSH_DISABLE_PROVIDER_AUTO_UPDATE=1 to use embedded version from the time of this Crush release. %w", catwalkUrl, err)
+ return nil, 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. %w", catwalkUrl, err) //nolint:staticcheck
}
return providers, nil
}
@@ -20,7 +20,7 @@ func TestProvider_loadProvidersEmptyResult(t *testing.T) {
tmpPath := t.TempDir() + "/providers.json"
providers, err := loadProviders(false, client, tmpPath)
- require.Contains(t, err.Error(), "crush was unable to fetch an updated list of providers")
+ require.Contains(t, err.Error(), "Crush was unable to fetch an updated list of providers")
require.Empty(t, providers)
require.Len(t, providers, 0)