Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Bednarz <[email protected]>
  • Loading branch information
danquack and jacobbednarz authored Oct 23, 2023
1 parent b55e8d6 commit d61123e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/sdkv2provider/data_source_tunnel_virtual_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ func dataSourceCloudflareTunnelVirtualNetworkRead(ctx context.Context, d *schema
Name: d.Get("name").(string),
})
if err != nil {
return diag.FromErr(fmt.Errorf("failed to fetch Cloudflare TunnelVirtualNetwork: %w", err))
return diag.FromErr(fmt.Errorf("failed to fetch Tunnel Virtual Networks: %w", err))
}
if len(tvn) == 0 {
return diag.FromErr(fmt.Errorf("No TunnelVirtualNetwork with name: %s", d.Get("name").(string)))
return diag.FromErr(fmt.Errorf("No Tunnel Virtual Networks found with name: %s", d.Get("name").(string)))
}

network := tvn[0]
Expand Down

0 comments on commit d61123e

Please sign in to comment.