only die when something terrible has gone wrong

This commit is contained in:
Aaron Bieber 2024-08-23 13:20:10 -06:00
parent 220fa3d931
commit d242ea23ee
No known key found for this signature in database

View File

@ -48,13 +48,12 @@ func main() {
log.Fatalf("%s does not exist", *dataDir)
} else {
err = records.Load(*dataDir)
if err != nil && os.IsNotExist(err) {
// If it's just a missing file, continue along
if !os.IsNotExist(err) {
log.Fatalln(err)
}
}
log.Println(records.Entries)
tsServer := &tsnet.Server{
Hostname: *sName,
}