1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 22:29:41 +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"
"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()
}