From 68c7342cbf7311d9598f6b5f8a7b2f60a9e340fd Mon Sep 17 00:00:00 2001 From: Marcus Ramberg Date: Sun, 6 Apr 2014 14:34:11 +0200 Subject: [PATCH] Expose error message when payload cannot be parsed --- pkg/handler/hooks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/handler/hooks.go b/pkg/handler/hooks.go index 57c0e0178..85da90aeb 100644 --- a/pkg/handler/hooks.go +++ b/pkg/handler/hooks.go @@ -47,7 +47,7 @@ func (h *HookHandler) HookGithub(w http.ResponseWriter, r *http.Request) error { // parse the github Hook payload hook, err := github.ParseHook([]byte(payload)) if err != nil { - println("could not parse hook") + println("could not parse hook:", err.Error()) return RenderText(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest) }