mirror of
https://framagit.org/ppom/reaction
synced 2026-03-14 12:45:47 +01:00
Fix: dont die if trying to delete unexistant DB
It can happen if reaction-flushes.db has never existed but reaction-matches does, on first run-time database rotation
This commit is contained in:
parent
87c00030fd
commit
a30a6644dc
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ func (c *Conf) RotateDB(startup bool) (*WriteDB, *WriteDB) {
|
|||
}
|
||||
|
||||
err = os.Remove(flushDBName)
|
||||
if err != nil {
|
||||
if err != nil && !errors.Is(err, os.ErrNotExist) {
|
||||
log.Fatalln("FATAL Failed to delete old DB:", err)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue