Skip to content

Commit

Permalink
Fixing web driver error
Browse files Browse the repository at this point in the history
  • Loading branch information
deven96 committed Mar 17, 2022
1 parent dfaa340 commit 2bd0f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (d *Web) RunCommand(command string) (string, error) {
res, err = http.Get(d.URL)
}
if err != nil || res.StatusCode < 200 || res.StatusCode > 299 {
message := fmt.Sprintf("Error %s running request: %s", err, string(res.StatusCode))
message := fmt.Sprintf("Error %s running request: %d", err, res.StatusCode)
return ``, errors.New(message)
}
elapsed := time.Since(start)
Expand Down

0 comments on commit 2bd0f6c

Please sign in to comment.