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

This commit is contained in:
Radek Simko 2017-03-23 09:19:03 +00:00 committed by GitHub
parent 3b7f429479
commit eddc8cce37
1 changed files with 1 additions and 1 deletions

View File

@ -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 {