1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Adjust Error message formatting for preview/push (#2477)

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
asn-iac
2023-08-08 09:02:49 -07:00
committed by GitHub
parent 59cbb73a9f
commit 1d9646d4ff

View File

@ -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