mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-02-25 08:02:58 +08:00
Adjust Error message formatting for preview/push (#2477)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
parent
59cbb73a9f
commit
1d9646d4ff
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue