forked from TrueCloudLab/frostfs-node
14 lines
300 B
Go
14 lines
300 B
Go
|
package ape
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
apistatus "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/client/status"
|
||
|
)
|
||
|
|
||
|
func toStatusErr(err error) error {
|
||
|
errAccessDenied := &apistatus.ObjectAccessDenied{}
|
||
|
errAccessDenied.WriteReason(fmt.Sprintf("ape denied request: %s", err.Error()))
|
||
|
return errAccessDenied
|
||
|
}
|