From 8d3033cc11c5eba3fc68ed174b391703db3ec18b Mon Sep 17 00:00:00 2001 From: Elliott Stoneham Date: Thu, 29 Sep 2016 14:26:30 +0100 Subject: [PATCH] add debug message for github template --- core/section/github/github.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/section/github/github.go b/core/section/github/github.go index e072ae4f..42fe6366 100644 --- a/core/section/github/github.go +++ b/core/section/github/github.go @@ -15,6 +15,7 @@ import ( "bytes" "encoding/json" "errors" + "fmt" "html/template" "io/ioutil" "net/http" @@ -235,8 +236,8 @@ func (p *Provider) Render(ctx *provider.Context, config, data string) string { if err != nil { log.Error("github render template.Parse error:", err) - for k,v := range strings.Split(resp.template,"\n"){ - fmt.Println("DEBUG",k+1,v) + for k, v := range strings.Split(rep.template, "\n") { + fmt.Println("DEBUG", k+1, v) } return "Documize internal github template.Parse error: " + err.Error() }