From cb9d8cee06de3ab4fa6ef9538c9c11216ac56c79 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 12 Apr 2022 16:38:50 +0200 Subject: [PATCH] Only warn when registry cleanup fails --- updates/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/updates/main.go b/updates/main.go index 0352f54b..550e23ac 100644 --- a/updates/main.go +++ b/updates/main.go @@ -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()