We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e47ab54 commit 8731ce9Copy full SHA for 8731ce9
1 file changed
internal/infrastructure/db/sqlite/utils.go
@@ -177,7 +177,9 @@ func execTx(
177
178
tx, err := conn.BeginTx(ctx, nil)
179
if err != nil {
180
- _ = closeConn(conn, isInterruptError(ctx, err))
+ closeErr := closeConn(conn, isInterruptError(ctx, err))
181
+ log.WithError(closeErr).
182
+ Warn("failed to close connection on unsuccessful begin transaction")
183
return fmt.Errorf("failed to begin transaction: %w", err)
184
}
185
qtx := queries.New(conn).WithTx(tx)
0 commit comments