From 9be95763e2b71123288067448eaa5434c82508bc Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 11 May 2026 23:29:35 +0000 Subject: [PATCH] Don't show error logs on closed transaction rollback --- lint/error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lint/error.go b/lint/error.go index d7ea2440..6063cd9f 100644 --- a/lint/error.go +++ b/lint/error.go @@ -29,7 +29,7 @@ func LogOnErrRollback(f ErrorableCtx, ctx context.Context, msg string) { e := f(ctx) if e != nil { // We're fine with rollbacks that are already properly closed - if e.Error() == "sql: transaction has already been committed or rolled back" { + if e.Error() == "sql: transaction has already been committed or rolled back" || e.Error() == "tx is closed" { return } log.Error().Err(e).Msg(msg)