mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-11-10 17:26:10 +08:00
GCLOUD: Don't panic() on unknown domain name (#944)
* GCLOUD: Dont panic on unknown domains
This commit is contained in:
parent
184131b1e3
commit
654bb9cfeb
1 changed files with 3 additions and 2 deletions
|
@ -125,8 +125,9 @@ func (g *gcloudProvider) GetNameservers(domain string) ([]*models.Nameserver, er
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
//fmt.Printf("zone = %q\n", zone)
|
||||
//fmt.Printf("zone.NameServers = %q\n", zone.NameServers)
|
||||
if zone == nil {
|
||||
return nil, fmt.Errorf("Domain %q not found in your GCLOUD account", domain)
|
||||
}
|
||||
return models.ToNameserversStripTD(zone.NameServers)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue