From 94b79176798cabc58fbbe8652f18384d0b305b01 Mon Sep 17 00:00:00 2001 From: Kingdon Barrett Date: Fri, 29 Oct 2021 11:21:56 -0400 Subject: [PATCH] Fix quoting around reconciliation error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While fixing an unrelated issue, I noticed: ✗ GitRepository reconciliation failed: ''PGP public keys secret error: expected pointer, but got nil the single quote should surround the readyCond.Message Signed-off-by: Kingdon Barrett --- cmd/flux/reconcile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/flux/reconcile.go b/cmd/flux/reconcile.go index cf6bdee2..c0c609d8 100644 --- a/cmd/flux/reconcile.go +++ b/cmd/flux/reconcile.go @@ -122,7 +122,7 @@ func (reconcile reconcileCommand) run(cmd *cobra.Command, args []string) error { } if readyCond.Status != metav1.ConditionTrue { - return fmt.Errorf("%s reconciliation failed: ''%s", reconcile.kind, readyCond.Message) + return fmt.Errorf("%s reconciliation failed: '%s'", reconcile.kind, readyCond.Message) } logger.Successf(reconcile.object.successMessage()) return nil