Fix error log to print out actual status codes

This commit is contained in:
Thomas Jackson 2019-01-17 15:44:54 -08:00
parent 18f68d3ab6
commit 39ca0a2ca0
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ func (w *Webhook) Do() error {
// If the webhook has a success statusCode, check against it
if w.Success != nil && resp.StatusCode != *w.Success {
return fmt.Errorf("received response code %q expected %q", resp.StatusCode, w.Success)
return fmt.Errorf("received response code %d expected %d", resp.StatusCode, *w.Success)
}
return nil