mirror of
https://github.com/documize/community.git
synced 2025-07-20 21:59: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"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
"fmt"
|
||||||
"html/template"
|
"html/template"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
@ -235,8 +236,8 @@ 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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue