pool: Fix handlerError
panic for objectPatch
#251
1 changed files with 5 additions and 1 deletions
|
@ -760,7 +760,11 @@ func (c *clientWrapper) objectPatch(ctx context.Context, prm PrmObjectPatch) (Re
|
||||||
}
|
}
|
||||||
|
|
||||||
res, err := pObj.Close(ctx)
|
res, err := pObj.Close(ctx)
|
||||||
if err = c.handleError(ctx, res.Status(), err); err != nil {
|
var st apistatus.Status
|
||||||
|
if res != nil {
|
||||||
|
st = res.Status()
|
||||||
|
}
|
||||||
|
if err = c.handleError(ctx, st, err); err != nil {
|
||||||
return ResPatchObject{}, fmt.Errorf("client failure: %w", err)
|
return ResPatchObject{}, fmt.Errorf("client failure: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue