From e054a2f0b341f067bc4d8b75f822742adfa98ba7 Mon Sep 17 00:00:00 2001 From: KubeKween Date: Tue, 1 Oct 2019 13:47:21 -0700 Subject: [PATCH] Make "not restored" message a bit better (#1901) * Make "not restoring" message a bit better Signed-off-by: Carlisia * Tweak error msg Signed-off-by: Carlisia * Address feedback Signed-off-by: Carlisia --- pkg/restore/restore.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/restore/restore.go b/pkg/restore/restore.go index f19659938..c4529332a 100644 --- a/pkg/restore/restore.go +++ b/pkg/restore/restore.go @@ -1064,13 +1064,13 @@ func (ctx *context) restoreItem(obj *unstructured.Unstructured, groupResource sc ctx.log.Infof("ServiceAccount %s successfully updated", kube.NamespaceAndName(obj)) } default: - e := errors.Errorf("not restored: %s and is different from backed up version.", restoreErr) + e := errors.Errorf("could not restore, %s. Warning: the in-cluster version is different than the backed-up version.", restoreErr) addToResult(&warnings, namespace, e) } return warnings, errs } - ctx.log.Infof("Skipping restore of %s: %v because it already exists in the cluster and is unchanged from the backed up version", obj.GroupVersionKind().Kind, name) + ctx.log.Infof("Restore of %s, %v skipped: it already exists in the cluster and is the same as the backed up version", obj.GroupVersionKind().Kind, name) return warnings, errs }