Skip to content

Commit

Permalink
Clarify error messages in testAccCheckBlockExists
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchnielsen committed Jun 18, 2024
1 parent 1f795ff commit f621e00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/provider/resources/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ func testAccCheckBlockExists(blockResourceName string, workspaceResourceName str
// Get the block resource we just created from the state
blockResource, exists := s.RootModule().Resources[blockResourceName]
if !exists {
return fmt.Errorf("resource not found: %s", blockResourceName)
return fmt.Errorf("block resource not found: %s", blockResourceName)
}
blockID, _ := uuid.Parse(blockResource.Primary.ID)

// Get the workspace resource we just created from the state
workspaceResource, exists := s.RootModule().Resources[workspaceResourceName]
if !exists {
return fmt.Errorf("resource not found: %s", workspaceResourceName)
return fmt.Errorf("workspace resource not found: %s", workspaceResourceName)
}
workspaceID, _ := uuid.Parse(workspaceResource.Primary.ID)

Expand Down

0 comments on commit f621e00

Please sign in to comment.