package client import ( "forge.cadoles.com/arcad/edge/pkg/storage/share" "github.com/pkg/errors" ) func remapShareError(err error) error { switch errors.Cause(err).Error() { case share.ErrAttributeRequired.Error(): return share.ErrAttributeRequired case share.ErrNotFound.Error(): return share.ErrNotFound default: return err } }