Fix error log to print out actual status codes
This commit is contained in:
parent
18f68d3ab6
commit
39ca0a2ca0
|
|
@ -59,7 +59,7 @@ func (w *Webhook) Do() error {
|
||||||
|
|
||||||
// If the webhook has a success statusCode, check against it
|
// If the webhook has a success statusCode, check against it
|
||||||
if w.Success != nil && resp.StatusCode != *w.Success {
|
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
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue