print the failing statement
This commit is contained in:
parent
57292dce17
commit
8da5d74c31
2
honk.go
2
honk.go
|
@ -1028,7 +1028,7 @@ var stmtZonkIt *sql.Stmt
|
||||||
func preparetodie(db *sql.DB, s string) *sql.Stmt {
|
func preparetodie(db *sql.DB, s string) *sql.Stmt {
|
||||||
stmt, err := db.Prepare(s)
|
stmt, err := db.Prepare(s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatalf("error %s: %s", err, s)
|
||||||
}
|
}
|
||||||
return stmt
|
return stmt
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue