provider/google: Improve error messages in backend_service test

This commit is contained in:
Christoph Tavan 2017-05-02 23:05:22 +02:00
parent 08b9a11b42
commit 69681b0a86
No known key found for this signature in database
GPG Key ID: D9B600C63A37FD28
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ func testAccCheckComputeBackendServiceDestroy(s *terraform.State) error {
_, err := config.clientCompute.BackendServices.Get( _, err := config.clientCompute.BackendServices.Get(
config.Project, rs.Primary.ID).Do() config.Project, rs.Primary.ID).Do()
if err == nil { if err == nil {
return fmt.Errorf("Backend service still exists") return fmt.Errorf("Backend service %s still exists", rs.Primary.ID)
} }
} }
@ -152,7 +152,7 @@ func testAccCheckComputeBackendServiceExists(n string, svc *compute.BackendServi
} }
if found.Name != rs.Primary.ID { if found.Name != rs.Primary.ID {
return fmt.Errorf("Backend service not found") return fmt.Errorf("Backend service %s not found", rs.Primary.ID)
} }
*svc = *found *svc = *found