diff --git a/blob/gcsblob/gcsblob.go b/blob/gcsblob/gcsblob.go index 376e3680a1..172359af41 100644 --- a/blob/gcsblob/gcsblob.go +++ b/blob/gcsblob/gcsblob.go @@ -435,7 +435,7 @@ func (b *bucket) ErrorCode(err error) gcerrors.ErrorCode { return gcerrors.ResourceExhausted } } - return gcerrors.Unknown + return gcerr.GRPCCode(err) } func (b *bucket) Close() error {