Skip to content

Commit

Permalink
fixed error in ds (GoogleCloudPlatform#5127)
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardmedia authored and khajduczenia committed Oct 12, 2021
1 parent ffac536 commit 58fbe0a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func dataSourceDnsManagedZoneRead(d *schema.ResourceData, meta interface{}) erro
zone, err := config.NewDnsClient(userAgent).ManagedZones.Get(
project, name).Do()
if err != nil {
return err
return handleNotFoundError(err, d, fmt.Sprintf("dataSourceDnsManagedZone %q", name))
}

if err := d.Set("name_servers", zone.NameServers); err != nil {
Expand Down

0 comments on commit 58fbe0a

Please sign in to comment.