Add error logging when CGI failed
This commit is contained in:
parent
1cf4ef3952
commit
60374d9e70
|
@ -26,10 +26,12 @@ func handleCGI(conf *Config, req *Request, cgiPath string) (ok bool) {
|
||||||
|
|
||||||
info, err := os.Stat(scriptPath)
|
info, err := os.Stat(scriptPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
log.Println(err.Error())
|
||||||
ok = false
|
ok = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !(info.Mode().Perm()&0555 == 0555) {
|
if !(info.Mode().Perm()&0555 == 0555) {
|
||||||
|
log.Println("File not executable")
|
||||||
ok = false
|
ok = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue