improve error logging

This commit is contained in:
Henrique Dias
2016-02-20 08:46:48 +00:00
parent 7ebdadbbab
commit 01e1715bc7
5 changed files with 6 additions and 12 deletions

View File

@@ -7,6 +7,7 @@
package hugo
import (
"log"
"mime"
"net/http"
"os"
@@ -141,6 +142,10 @@ func (h CaddyHugo) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error
utils.Run(h.Config)
}
if err != nil {
log.Panic(err)
}
return code, err
}