forked from TrueCloudLab/frostfs-node
Dmitrii Stepanov
d433b49265
`fmt.Errorf can be replaced with errors.New` and `fmt.Sprintf can be replaced with string addition` Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
11 lines
278 B
Go
11 lines
278 B
Go
package ape
|
|
|
|
import (
|
|
apistatus "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/client/status"
|
|
)
|
|
|
|
func toStatusErr(err error) error {
|
|
errAccessDenied := &apistatus.ObjectAccessDenied{}
|
|
errAccessDenied.WriteReason("ape denied request: " + err.Error())
|
|
return errAccessDenied
|
|
}
|