Skip to content
This repository was archived by the owner on Oct 28, 2022. It is now read-only.

Commit b6b878f

Browse files
committed
return error on failed hook calls
1 parent 3108ce3 commit b6b878f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

models/onMatchHook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func (h *OnMatchHook) Call(body io.Reader, dataKind DataKind) (http.Header, erro
102102

103103
resp, err := http.DefaultClient.Do(req)
104104
if err != nil {
105-
log.WithError(err).WithField("url", h.URL).WithField("id", h.ID.Hex()).Warnf("Failed calling hook")
105+
return req.Header, err
106106
}
107107

108108
if resp.StatusCode >= 400 {

0 commit comments

Comments
 (0)