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)
return
}
prepareStatements(db)
db.Close()
fmt.Printf("done.\n")
os.Exit(0)