Cleaner config error reporting
This commit is contained in:
parent
7f7818115f
commit
6b6aab0cd9
3
main.go
3
main.go
@ -42,7 +42,8 @@ func main() {
|
|||||||
|
|
||||||
c, err := config.LoadConfig(o.ConfigFile)
|
c, err := config.LoadConfig(o.ConfigFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
log.Fatalf("error validating config: %s", err.Error())
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Println("creating tun adapter...")
|
log.Println("creating tun adapter...")
|
||||||
|
Loading…
Reference in New Issue
Block a user