diff --git a/c14h/sql.go b/c14h/sql.go index 5d5137c..58063bf 100644 --- a/c14h/sql.go +++ b/c14h/sql.go @@ -27,8 +27,10 @@ func OpenDB() (err error) { func (v *Vortrag) Put() (err error) { log.Println("Put", v) - tx, _ := db.Begin() - + tx, err := db.Begin() + if err != nil { + return err + } defer tx.Rollback() var stmt *sql.Stmt