From a1cdd8cfa9dc53b19dc14be0d19fa4986192a059 Mon Sep 17 00:00:00 2001 From: Alex Buchanan Date: Tue, 3 Sep 2024 13:34:46 -0700 Subject: [PATCH] better error messages --- internal/cmd/local/local/locate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cmd/local/local/locate.go b/internal/cmd/local/local/locate.go index 3330d9e..8550db9 100644 --- a/internal/cmd/local/local/locate.go +++ b/internal/cmd/local/local/locate.go @@ -42,12 +42,12 @@ func getLatestAirbyteChartUrlFromRepoIndex(repoName, repoUrl string) (string, er idxPath, err := chartRepo.DownloadIndexFile() if err != nil { - return "", fmt.Errorf("unable to access repo index: %w", err) + return "", fmt.Errorf("unable to download index file: %w", err) } idx, err := repo.LoadIndexFile(idxPath) if err != nil { - return "", fmt.Errorf("unable to access repo index: %w", err) + return "", fmt.Errorf("unable to load index file (%s): %w", idxPath, err) } airbyteEntry, ok := idx.Entries["airbyte"]