diff --git a/callbacks.go b/callbacks.go index 1b4e58ea..f835e504 100644 --- a/callbacks.go +++ b/callbacks.go @@ -91,7 +91,7 @@ func (p *processor) Begin(tx *DB, opt *sql.TxOptions) *DB { } if err != nil { - tx.AddError(err) + _ = tx.AddError(err) } return tx