provider/github: Improve test failure message (#12978)

pull/12998/head
Radek Simko 9 years ago committed by GitHub
parent 3b7f429479
commit eddc8cce37

@ -184,7 +184,7 @@ func testAccCheckGithubRepositoryDestroy(s *terraform.State) error {
gotRepo, resp, err := conn.Repositories.Get(context.TODO(), orgName, rs.Primary.ID)
if err == nil {
if gotRepo != nil && *gotRepo.Name == rs.Primary.ID {
return fmt.Errorf("Repository still exists")
return fmt.Errorf("Repository %s/%s still exists", orgName, *gotRepo.Name)
}
}
if resp.StatusCode != 404 {

Loading…
Cancel
Save