Skip to content
Snippets Groups Projects
Verified Commit 0170b398 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixes template resolution

parent 3d269b20
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment