Skip to content

Commit

Permalink
Make picky CI happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredoconnell committed Nov 9, 2023
1 parent c93ccc6 commit a306158
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/step/plugin/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,12 @@ func (p *pluginProvider) LoadSchema(inputs map[string]any, _ map[string][]byte)
cancel()
// Close it. This allows it go get the error messages.
deployerErr := pluginConnector.Close()
if deployerErr == nil {
return nil, fmt.Errorf("failed to read plugin schema from '%s' (%w)",
pluginSource, err)
} else {
if deployerErr != nil {
return nil, fmt.Errorf("failed to read plugin schema from '%s' (%w). Deployer close error: (%s)",
pluginSource, err, deployerErr.Error())
}
return nil, fmt.Errorf("failed to read plugin schema from '%s' (%w)",
pluginSource, err)
}
// Tell the server that the client is done
if err := transport.Close(); err != nil {
Expand Down

0 comments on commit a306158

Please sign in to comment.