Compare commits
1 commit
master
...
fix/status
Author | SHA1 | Date | |
---|---|---|---|
457116494d |
1 changed files with 5 additions and 5 deletions
|
@ -211,7 +211,7 @@ func (c *Service) Head(ctx context.Context, request *objectV2.HeadRequest) (*obj
|
|||
SoftAPECheck: reqCtx.SoftAPECheck,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, toStatusErr(err)
|
||||
}
|
||||
|
||||
resp, err := c.next.Head(ctx, request)
|
||||
|
@ -249,7 +249,7 @@ func (c *Service) Head(ctx context.Context, request *objectV2.HeadRequest) (*obj
|
|||
SoftAPECheck: reqCtx.SoftAPECheck,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, toStatusErr(err)
|
||||
}
|
||||
return resp, nil
|
||||
}
|
||||
|
@ -303,7 +303,7 @@ func (c *Service) Delete(ctx context.Context, request *objectV2.DeleteRequest) (
|
|||
SoftAPECheck: reqCtx.SoftAPECheck,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, toStatusErr(err)
|
||||
}
|
||||
|
||||
resp, err := c.next.Delete(ctx, request)
|
||||
|
@ -363,7 +363,7 @@ func (c *Service) GetRangeHash(ctx context.Context, request *objectV2.GetRangeHa
|
|||
}
|
||||
|
||||
if err = c.apeChecker.CheckAPE(ctx, prm); err != nil {
|
||||
return nil, err
|
||||
return nil, toStatusErr(err)
|
||||
}
|
||||
|
||||
resp, err := c.next.GetRangeHash(ctx, request)
|
||||
|
@ -372,7 +372,7 @@ func (c *Service) GetRangeHash(ctx context.Context, request *objectV2.GetRangeHa
|
|||
}
|
||||
|
||||
if err = c.apeChecker.CheckAPE(ctx, prm); err != nil {
|
||||
return nil, err
|
||||
return nil, toStatusErr(err)
|
||||
}
|
||||
return resp, nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue