Skip to content

Commit

Permalink
Improve error handling for reading data from GCS
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Rodriguez <[email protected]>
  • Loading branch information
lucasrod16 committed Sep 17, 2024
1 parent 77139d6 commit ce86caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ce86caa

Please sign in to comment.