prepare all statements after initdb to catch errors earlier

This commit is contained in:
Ted Unangst 2019-04-10 08:08:17 -04:00
parent 6a04ab15ca
commit 7fdd6d6f41
1 changed files with 1 additions and 0 deletions

View File

@ -163,6 +163,7 @@ func initdb() {
log.Print(err) log.Print(err)
return return
} }
prepareStatements(db)
db.Close() db.Close()
fmt.Printf("done.\n") fmt.Printf("done.\n")
os.Exit(0) os.Exit(0)