mirror of
https://github.com/documize/community.git
synced 2025-07-21 06:09:42 +02:00
add debug message for github template
This commit is contained in:
parent
48dbc0b196
commit
8d3033cc11
1 changed files with 3 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue