From 1d9646d4ff2f9ca7313cb558674d6c5d2ad54f9b Mon Sep 17 00:00:00 2001 From: asn-iac <134323752+asn-iac@users.noreply.github.com> Date: Tue, 8 Aug 2023 09:02:49 -0700 Subject: [PATCH] Adjust Error message formatting for preview/push (#2477) Co-authored-by: Tom Limoncelli --- commands/previewPush.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/previewPush.go b/commands/previewPush.go index e40610d24..c1915deac 100644 --- a/commands/previewPush.go +++ b/commands/previewPush.go @@ -181,7 +181,7 @@ func run(args PreviewArgs, push bool, interactive bool, out printer.CLI) error { if lister, ok := provider.Driver.(providers.ZoneLister); ok && !push { zones, err := lister.ListZones() if err != nil { - out.Errorf("ERROR: %s", err.Error()) + out.Errorf("ERROR: %s\n", err.Error()) return } aceZoneName, _ := idna.ToASCII(domain.Name) @@ -208,7 +208,7 @@ func run(args PreviewArgs, push bool, interactive bool, out printer.CLI) error { nsList, err := nameservers.DetermineNameserversForProviders(domain, providersWithExistingZone) if err != nil { - out.Errorf("ERROR: %s", err.Error()) + out.Errorf("ERROR: %s\n", err.Error()) return } domain.Nameservers = nsList