Skip to content

Commit

Permalink
Fix issue with checking plugin.BasicError == nil
Browse files Browse the repository at this point in the history
  • Loading branch information
briankassouf committed Oct 5, 2017
1 parent 961bb5a commit d8d3e66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion logical/plugin/backend_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d8d3e66

Please sign in to comment.