mirror of
https://tildegit.org/solderpunk/molly-brown.git
synced 2025-08-05 16:59:11 +00:00
Broader config file error handling.
This commit is contained in:
parent
54f659c03f
commit
3c4c447bd3
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -17,7 +17,7 @@ func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
if conf_file == "" {
|
if conf_file == "" {
|
||||||
_, err := os.Stat("/etc/molly.conf")
|
_, err := os.Stat("/etc/molly.conf")
|
||||||
if !os.IsNotExist(err) {
|
if err == nil {
|
||||||
conf_file = "/etc/molly.conf"
|
conf_file = "/etc/molly.conf"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue