Clean up bsd routes independently of the state file

This commit is contained in:
Viktor Liu
2025-10-23 16:08:10 +02:00
parent d80d47a469
commit bf0698e5aa
9 changed files with 106 additions and 13 deletions

View File

@@ -295,7 +295,7 @@ func (m *Manager) loadStateFile(deleteCorrupt bool) (map[string]json.RawMessage,
data, err := os.ReadFile(m.filePath)
if err != nil {
if errors.Is(err, fs.ErrNotExist) {
log.Debug("state file does not exist")
log.Debugf("state file %s does not exist", m.filePath)
return nil, nil // nolint:nilnil
}
return nil, fmt.Errorf("read state file: %w", err)