lib/versioner: Don't complain when folder is stopping (#9097)

This commit is contained in:
Jakob Borg 2023-09-11 23:10:18 +02:00 committed by GitHub
parent 5ff11ce142
commit 4812600098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -330,7 +330,9 @@ func clean(ctx context.Context, versionsFs fs.Filesystem, toRemove func([]string
}
if err := versionsFs.Walk(".", walkFn); err != nil {
l.Warnln("Versioner: error scanning versions dir", err)
if !errors.Is(err, context.Canceled) {
l.Warnln("Versioner: scanning versions dir:", err)
}
return err
}