Verified Commit 0170b398 authored by Janne Koschinski's avatar Janne Koschinski
Browse files

Fixes template resolution

parent 3d269b20
......@@ -134,6 +134,10 @@ func errorHandler(errorFilesPath string) func(http.ResponseWriter, *http.Request
for _, ext := range exts {
var filePath string
if !strings.HasPrefix(ext, ".") {
ext = fmt.Sprintf(".%v", ext)
}
filePath = fmt.Sprintf("%v/%v%v", errorFilesPath, code, ext)
if _, err = os.Stat(filePath); err == nil {
file = filePath
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment