Skip to content

Commit dae929f

Browse files
authored
chore: error strings (#287)
Error strings should not be capitalized or end with punctuation because they might appear among other context. Signed-off-by: Ryan Johnson <[email protected]>
1 parent 7d8dc2c commit dae929f

3 files changed

+3
-3
lines changed

vmc/resource_vmc_cluster_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ func testAccVmcClusterResourceImportStateIDFunc(resourceName string) resource.Im
311311
return func(s *terraform.State) (string, error) {
312312
rs, ok := s.RootModule().Resources[resourceName]
313313
if !ok {
314-
return "", fmt.Errorf("Not found: %s", resourceName)
314+
return "", fmt.Errorf("not found: %s", resourceName)
315315
}
316316
return fmt.Sprintf("%s,%s", rs.Primary.ID, rs.Primary.Attributes["sddc_id"]), nil
317317
}

vmc/resource_vmc_site_recovery_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func testAccVmcSiteRecoveryResourceImportStateIDFunc(resourceName string) resour
123123
return func(s *terraform.State) (string, error) {
124124
rs, ok := s.RootModule().Resources[resourceName]
125125
if !ok {
126-
return "", fmt.Errorf("Not found: %s", resourceName)
126+
return "", fmt.Errorf("not found: %s", resourceName)
127127
}
128128
return rs.Primary.Attributes["sddc_id"], nil
129129
}

vmc/resource_vmc_srm_node_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func testAccVmcSrmResourceImportStateIDFunc(resourceName string) resource.Import
190190
return func(s *terraform.State) (string, error) {
191191
rs, ok := s.RootModule().Resources[resourceName]
192192
if !ok {
193-
return "", fmt.Errorf("Not found: %s", resourceName)
193+
return "", fmt.Errorf("not found: %s", resourceName)
194194
}
195195
return fmt.Sprintf("%s,%s", rs.Primary.ID, rs.Primary.Attributes["sddc_id"]), nil
196196
}

0 commit comments

Comments
 (0)