fix: ignore errors when crash log doesn't exist

This commit is contained in:
Siyuan 2025-11-07 15:18:50 +00:00
parent 99a60120e5
commit 72f29df835
1 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,9 @@ func checkFailsafeReason() {
l := failsafeLogger.With().Str("path", lastCrashPath).Logger()
fi, err := os.Lstat(lastCrashPath)
if err != nil {
if !os.IsNotExist(err) {
l.Warn().Err(err).Msg("failed to stat last crash log")
}
return
}