1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-05-17 22:22:43 +02:00

Fix error handling

This commit is contained in:
Ralph Slooten 2024-12-01 14:49:01 +13:00
parent 6e44691f6d
commit 22cae16e00

View File

@ -190,15 +190,15 @@ func DeleteSearch(search, timezone string) error {
}
}
err = tx.Commit()
if err := tx.Commit(); err != nil {
return err
}
if err := pruneUnusedTags(); err != nil {
return err
}
if err == nil {
logger.Log().Debugf("[db] deleted %d messages matching %s", total, search)
}
logger.Log().Debugf("[db] deleted %d messages matching %s", total, search)
dbLastAction = time.Now()