From ce86caa1dbad027d408891827ea2444b715ebae1 Mon Sep 17 00:00:00 2001 From: Lucas Rodriguez Date: Tue, 17 Sep 2024 15:07:59 -0500 Subject: [PATCH] Improve error handling for reading data from GCS Signed-off-by: Lucas Rodriguez --- pkg/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cache.go b/pkg/cache.go index c9ed8c4..da89435 100644 --- a/pkg/cache.go +++ b/pkg/cache.go @@ -54,7 +54,7 @@ func (c *Cache) RepoData(ctx context.Context) error { data, err := io.ReadAll(r) if err != nil { - return fmt.Errorf("error reading GitHub data from GCS bucket: %s", bucket) + return fmt.Errorf("error reading GitHub data from GCS bucket %q: %w", bucket, err) } c.Set(data)