Only warn when registry cleanup fails

This commit is contained in:
Daniel
2022-04-12 16:38:50 +02:00
parent 0c5bdbbc13
commit cb9d8cee06

View File

@@ -269,7 +269,10 @@ func checkForUpdates(ctx context.Context) (err error) {
func stop() error {
if registry != nil {
return registry.Cleanup()
err := registry.Cleanup()
if err != nil {
log.Warningf("updates: failed to clean up registry: %s", err)
}
}
return stopVersionExport()