only die when something terrible has gone wrong
This commit is contained in:
parent
220fa3d931
commit
d242ea23ee
5
main.go
5
main.go
@ -48,13 +48,12 @@ func main() {
|
|||||||
log.Fatalf("%s does not exist", *dataDir)
|
log.Fatalf("%s does not exist", *dataDir)
|
||||||
} else {
|
} else {
|
||||||
err = records.Load(*dataDir)
|
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.Fatalln(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Println(records.Entries)
|
|
||||||
|
|
||||||
tsServer := &tsnet.Server{
|
tsServer := &tsnet.Server{
|
||||||
Hostname: *sName,
|
Hostname: *sName,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user