diff options
| author | Taras Madan <tarasmadan@google.com> | 2023-07-21 11:54:11 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2023-07-24 09:12:13 +0000 |
| commit | 7549a7e1b57831cf6b08ce4700fc6e53417919f9 (patch) | |
| tree | 8e027cdaf7abbc52a5fb29c37c7137dfd2122e7a /pkg/gcs | |
| parent | f7eecac8b446ef11cff4122de6f496ad5eaba3a9 (diff) | |
all: use special placeholder for errors
Diffstat (limited to 'pkg/gcs')
| -rw-r--r-- | pkg/gcs/gcs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gcs/gcs.go b/pkg/gcs/gcs.go index e0ccd39c5..2b7a87ab9 100644 --- a/pkg/gcs/gcs.go +++ b/pkg/gcs/gcs.go @@ -64,7 +64,7 @@ func (client *Client) Read(gcsFile string) (*File, error) { f := bkt.Object(filename) attrs, err := f.Attrs(client.ctx) if err != nil { - return nil, fmt.Errorf("failed to read %v attributes: %v", gcsFile, err) + return nil, fmt.Errorf("failed to read %v attributes: %w", gcsFile, err) } if !attrs.Deleted.IsZero() { return nil, fmt.Errorf("file %v is deleted", gcsFile) |
