.. and err is not nil

This commit is contained in:
Aaron Bieber 2024-08-23 20:21:22 -06:00
parent d242ea23ee
commit 88abecec0e
No known key found for this signature in database

View File

@ -49,7 +49,7 @@ func main() {
} else {
err = records.Load(*dataDir)
// If it's just a missing file, continue along
if !os.IsNotExist(err) {
if !os.IsNotExist(err) && err != nil {
log.Fatalln(err)
}
}