0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-06 22:40:31 -05:00

change from error to a warning in errors setup

This commit is contained in:
Guilherme Rezende 2015-06-22 23:19:48 -03:00
parent 4b349805db
commit efbf01b49d

View file

@ -1,6 +1,7 @@
package setup
import (
"fmt"
"log"
"os"
"path"
@ -68,7 +69,7 @@ func errorsParse(c *Controller) (*errors.ErrorHandler, error) {
where = path.Join(c.Root, where)
f, err := os.Open(where)
if err != nil {
return hadBlock, c.Err("Unable to open error page '" + where + "': " + err.Error())
fmt.Println("Warning: Unable to open error page '" + where + "': " + err.Error())
}
f.Close()