print the failing statement
This commit is contained in:
parent
57292dce17
commit
8da5d74c31
1 changed files with 1 additions and 1 deletions
2
honk.go
2
honk.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue