diff --git a/logical/plugin/backend_client.go b/logical/plugin/backend_client.go index aeddd8b382dc..c3b53afd8b16 100644 --- a/logical/plugin/backend_client.go +++ b/logical/plugin/backend_client.go @@ -117,9 +117,11 @@ func (b *backendPluginClient) HandleRequest(req *logical.Request) (*logical.Resp if reply.Error.Error() == logical.ErrUnsupportedOperation.Error() { return nil, logical.ErrUnsupportedOperation } + + return reply.Response, reply.Error } - return reply.Response, reply.Error + return reply.Response, nil } func (b *backendPluginClient) SpecialPaths() *logical.Paths {