mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
provider/github: Improve test failure message (#12978)
This commit is contained in:
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…
Reference in New Issue
Block a user