Skip to content

Commit

Permalink
fix(ovh): headers not found error badly catched (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbeuque74 authored and fsamin committed Aug 10, 2018
1 parent b188839 commit 9ec0e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executors/ovhapi/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (Executor) Run(testCaseContext venom.TestCaseContext, l venom.Logger, step

var contextHeader map[string]string
err = ctx.GetComplex("headers", &contextHeader)
if err != nil && err != defaultctx.NotFound("headers") {
if err != nil && err.Error() != defaultctx.NotFound("headers").Error() {
l.Warnf("fail to read headers from context : '%s'", err)
}
for key, value := range contextHeader {
Expand Down

0 comments on commit 9ec0e1b

Please sign in to comment.