mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-23 02:29:59 +08:00
Moved test files to testdata folder.
Changed the tests accordingly.
This commit is contained in:
@ -2,6 +2,7 @@ package markdown
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
@ -106,6 +107,7 @@ func (md Markdown) processTemplate(c Config, requestPath string, tmpl []byte, me
|
||||
// nothing fatal, only log the error.
|
||||
// TODO: Report this non-fatal error, but don't log it here
|
||||
log.Println(err)
|
||||
fmt.Printf("Error: %v", err)
|
||||
}
|
||||
|
||||
return b.Bytes(), nil
|
||||
|
Reference in New Issue
Block a user