From 7fdd6d6f41446bacd7678eb82ee1dae19b0a57cf Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 10 Apr 2019 08:08:17 -0400 Subject: [PATCH] prepare all statements after initdb to catch errors earlier --- util.go | 1 + 1 file changed, 1 insertion(+) diff --git a/util.go b/util.go index 2a92b49..5369bee 100644 --- a/util.go +++ b/util.go @@ -163,6 +163,7 @@ func initdb() { log.Print(err) return } + prepareStatements(db) db.Close() fmt.Printf("done.\n") os.Exit(0)