print the failing statement

This commit is contained in:
Ted Unangst 2019-04-16 11:16:43 -04:00
parent 57292dce17
commit 8da5d74c31
1 changed files with 1 additions and 1 deletions

View File

@ -1028,7 +1028,7 @@ var stmtZonkIt *sql.Stmt
func preparetodie(db *sql.DB, s string) *sql.Stmt {
stmt, err := db.Prepare(s)
if err != nil {
log.Fatal(err)
log.Fatalf("error %s: %s", err, s)
}
return stmt
}