on main help sign in
chore: provider error message copyedit (#1029)
commitbd4503ee32b216df36321711fed6b0a20a743a2a authorChristian Rocha <christian@rocha.is> dateFri 12 Sep 2025, 16:52 (1 year ago) parent04b5710
2 files changed+2−2
internal/config/provider.go+1−1 internal/config/provider_empty_test.go+1−1
internal/config/provider.go+1−1
@@ -196,7 +196,7 @@ func loadProviders(autoUpdateDisabled bool, client ProviderClient, path string)
196196 providers, err := catwalkGetAndSave()
197197 if err != nil {
198198 catwalkUrl := fmt.Sprintf("%s/providers", cmp.Or(os.Getenv("CATWALK_URL"), defaultCatwalkURL))
199− 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)
199+ 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
200200 }
201201 return providers, nil
202202 }
internal/config/provider_empty_test.go+1−1
@@ -20,7 +20,7 @@ func TestProvider_loadProvidersEmptyResult(t *testing.T) {
2020 tmpPath := t.TempDir() + "/providers.json"
2121
2222 providers, err := loadProviders(false, client, tmpPath)
23− require.Contains(t, err.Error(), "crush was unable to fetch an updated list of providers")
23+ require.Contains(t, err.Error(), "Crush was unable to fetch an updated list of providers")
2424 require.Empty(t, providers)
2525 require.Len(t, providers, 0)
2626