mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-13 22:51:08 -05:00
Merge pull request #160 from guilhermebr/master
errors: change missing errors file from error to a warning during parsing
This commit is contained in:
commit
06a7f1d3da
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
package setup
|
package setup
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
@ -68,7 +69,7 @@ func errorsParse(c *Controller) (*errors.ErrorHandler, error) {
|
||||||
where = path.Join(c.Root, where)
|
where = path.Join(c.Root, where)
|
||||||
f, err := os.Open(where)
|
f, err := os.Open(where)
|
||||||
if err != nil {
|
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()
|
f.Close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue