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

Attempt to fix error handling

parent 6cff08ed
Branches
No related tags found
No related merge requests found
...@@ -136,7 +136,7 @@ func errorHandler(errorFilesPath string) func(http.ResponseWriter, *http.Request ...@@ -136,7 +136,7 @@ func errorHandler(errorFilesPath string) func(http.ResponseWriter, *http.Request
if _, err := os.Stat(file); os.IsNotExist(err) { if _, err := os.Stat(file); os.IsNotExist(err) {
scode := strconv.Itoa(code) scode := strconv.Itoa(code)
filePath = fmt.Sprintf("%v/%cxx%v", errorFilesPath, scode[0], ext) filePath = fmt.Sprintf("%v/%cxx%v", errorFilesPath, scode[0], ext)
if _, err := os.Stat(file); os.IsExist(err) { if _, err := os.Stat(file); os.IsNotExist(err) {
continue continue
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment