mirror of
https://github.com/mjl-/mox.git
synced 2025-07-14 17:34:37 +03:00
consistently use log.Check for logging errors that "should not happen", don't influence application flow
sooner or later, someone will notice one of these messages, which will lead us to a bug.
This commit is contained in:
@ -99,7 +99,8 @@ func Close() {
|
||||
mutex.Lock()
|
||||
defer mutex.Unlock()
|
||||
if mtastsDB != nil {
|
||||
mtastsDB.Close()
|
||||
err := mtastsDB.Close()
|
||||
xlog.Check(err, "closing database")
|
||||
mtastsDB = nil
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user