From 39ca0a2ca0228be8e41f8b004d02cbae3430daad Mon Sep 17 00:00:00 2001 From: Thomas Jackson Date: Thu, 17 Jan 2019 15:44:54 -0800 Subject: [PATCH] Fix error log to print out actual status codes --- cmd/git-sync/webhooks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/git-sync/webhooks.go b/cmd/git-sync/webhooks.go index a81fe9d..8dd6297 100644 --- a/cmd/git-sync/webhooks.go +++ b/cmd/git-sync/webhooks.go @@ -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