Cleaner config error reporting

This commit is contained in:
Jake Hillion 2021-05-11 22:37:15 +01:00
parent 7f7818115f
commit 6b6aab0cd9

View File

@ -42,7 +42,8 @@ func main() {
c, err := config.LoadConfig(o.ConfigFile)
if err != nil {
panic(err)
log.Fatalf("error validating config: %s", err.Error())
return
}
log.Println("creating tun adapter...")