Skip to content

Commit

Permalink
Update contrib/grpcplugins/action/plugin-venom/main.go
Browse files Browse the repository at this point in the history
Co-authored-by: Yvonnick Esnault <[email protected]>
  • Loading branch information
storagebits and yesnault authored Jun 23, 2020
1 parent 254f9ac commit a8f9500
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions contrib/grpcplugins/action/plugin-venom/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,9 @@ func (actPlugin *venomActionPlugin) Run(ctx context.Context, q *actionplugin.Act

stopOnFailure := false
if stopOnFailureStr != "" {
var errb error
stopOnFailure, errb = strconv.ParseBool(stopOnFailureStr)
stopOnFailure, err = strconv.ParseBool(stopOnFailureStr)
if err != nil {
return actionplugin.Fail("Error parsing stopOnFailure value : %s\n", errb.Error())
return actionplugin.Fail("Error parsing stopOnFailure value : %v\n", err)
}
}

Expand Down

0 comments on commit a8f9500

Please sign in to comment.