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

get-zones: improve error message for unsupported providers (#1978)

This commit is contained in:
Tom Limoncelli
2023-01-24 10:11:38 -05:00
committed by GitHub
parent b9b35d516e
commit 32c7703702

View File

@ -172,7 +172,7 @@ func GetZone(args GetZoneArgs) error {
if len(args.ZoneNames) == 1 && args.ZoneNames[0] == "all" {
lister, ok := provider.(providers.ZoneLister)
if !ok {
return fmt.Errorf("provider type %s cannot list zones to use the 'all' feature", args.ProviderName)
return fmt.Errorf("provider type %s:%s cannot list zones to use the 'all' feature", args.CredName, args.ProviderName)
}
zones, err = lister.ListZones()
if err != nil {