Fix previous commit, add missing error check and minor test refactor.

Unclear how I botched this up at the last minute before committing...
This commit is contained in:
Mechiel Lukkien
2025-03-07 10:30:55 +01:00
parent 51f58a52c9
commit d78aa9d1d7
2 changed files with 15 additions and 16 deletions

View File

@ -1208,6 +1208,7 @@ func OpenAccountDB(log mlog.Log, accountDir, accountName string) (a *Account, re
if err != nil {
p := filepath.Join(dir, e.Name())
log.Errorx("unrecognized file in message directory, parsing filename as number", err, slog.String("path", p))
} else {
maxFSID = max(maxFSID, id)
}
}