From 60c0cb3864f6d2c943ce58c87ef08131a00c595f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Tue, 9 Apr 2024 14:20:03 +0200 Subject: [PATCH] Improve handling of mirror renw (#2400) --- cmd/mirror.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/mirror.go b/cmd/mirror.go index 980ae44191..d09aaaac67 100644 --- a/cmd/mirror.go +++ b/cmd/mirror.go @@ -364,7 +364,11 @@ func newMirrorRenewCmd() *cobra.Command { if !v1manifest.IsExpirationError(perrs.Cause(err)) { return err } - fmt.Println(err) + fmt.Printf("Ignoring expiration error: %s", err) + } + + if m == nil { + return errors.New("got nil manifest") } if days > 0 {