Skip to content

Commit

Permalink
chore: error strings (#287)
Browse files Browse the repository at this point in the history
Error strings should not be capitalized or end with punctuation because they might appear among other context.

Signed-off-by: Ryan Johnson <[email protected]>
  • Loading branch information
tenthirtyam authored Dec 4, 2024
1 parent 7d8dc2c commit dae929f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vmc/resource_vmc_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func testAccVmcClusterResourceImportStateIDFunc(resourceName string) resource.Im
return func(s *terraform.State) (string, error) {
rs, ok := s.RootModule().Resources[resourceName]
if !ok {
return "", fmt.Errorf("Not found: %s", resourceName)
return "", fmt.Errorf("not found: %s", resourceName)
}
return fmt.Sprintf("%s,%s", rs.Primary.ID, rs.Primary.Attributes["sddc_id"]), nil
}
Expand Down
2 changes: 1 addition & 1 deletion vmc/resource_vmc_site_recovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func testAccVmcSiteRecoveryResourceImportStateIDFunc(resourceName string) resour
return func(s *terraform.State) (string, error) {
rs, ok := s.RootModule().Resources[resourceName]
if !ok {
return "", fmt.Errorf("Not found: %s", resourceName)
return "", fmt.Errorf("not found: %s", resourceName)
}
return rs.Primary.Attributes["sddc_id"], nil
}
Expand Down
2 changes: 1 addition & 1 deletion vmc/resource_vmc_srm_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func testAccVmcSrmResourceImportStateIDFunc(resourceName string) resource.Import
return func(s *terraform.State) (string, error) {
rs, ok := s.RootModule().Resources[resourceName]
if !ok {
return "", fmt.Errorf("Not found: %s", resourceName)
return "", fmt.Errorf("not found: %s", resourceName)
}
return fmt.Sprintf("%s,%s", rs.Primary.ID, rs.Primary.Attributes["sddc_id"]), nil
}
Expand Down

0 comments on commit dae929f

Please sign in to comment.