From 0b7be24f80b41639328551f87dfe0b079a81326b Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Tue, 30 Dec 2025 23:13:55 -0500 Subject: [PATCH] propagate mysql close error --- irc/mysql/history.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/irc/mysql/history.go b/irc/mysql/history.go index 9ec74c2f..7a6988dd 100644 --- a/irc/mysql/history.go +++ b/irc/mysql/history.go @@ -1049,13 +1049,13 @@ func (mysql *MySQL) ListChannels(cfchannels []string) (results []history.TargetL return } -func (mysql *MySQL) Close() error { +func (mysql *MySQL) Close() (err error) { // closing the database will close our prepared statements as well if mysql.db != nil { - mysql.db.Close() + err = mysql.db.Close() } mysql.db = nil - return nil + return } // implements history.Sequence, emulating a single history buffer (for a channel,