Commit 404c4b4e authored by Sietse Ringers's avatar Sietse Ringers
Browse files

fix: check errors when loading config file

parent cc4673af
......@@ -113,6 +113,8 @@ func main() {
fmt.Println(exampleConfig)
os.Exit(1)
return
} else if err != nil {
log.Fatalf("Could not stat configuration file: %v", err)
}
buf, err := ioutil.ReadFile(confPath)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment