1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-20 13:49:42 +02:00

add debug message for github template

This commit is contained in:
Elliott Stoneham 2016-09-29 14:26:30 +01:00
parent 48dbc0b196
commit 8d3033cc11

View file

@ -15,6 +15,7 @@ import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"errors" "errors"
"fmt"
"html/template" "html/template"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
@ -235,7 +236,7 @@ func (p *Provider) Render(ctx *provider.Context, config, data string) string {
if err != nil { if err != nil {
log.Error("github render template.Parse error:", err) log.Error("github render template.Parse error:", err)
for k,v := range strings.Split(resp.template,"\n"){ for k, v := range strings.Split(rep.template, "\n") {
fmt.Println("DEBUG", k+1, v) fmt.Println("DEBUG", k+1, v)
} }
return "Documize internal github template.Parse error: " + err.Error() return "Documize internal github template.Parse error: " + err.Error()