.. and err is not nil
This commit is contained in:
parent
d242ea23ee
commit
88abecec0e
2
main.go
2
main.go
@ -49,7 +49,7 @@ func main() {
|
|||||||
} else {
|
} else {
|
||||||
err = records.Load(*dataDir)
|
err = records.Load(*dataDir)
|
||||||
// If it's just a missing file, continue along
|
// If it's just a missing file, continue along
|
||||||
if !os.IsNotExist(err) {
|
if !os.IsNotExist(err) && err != nil {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user