From 354d919d75cd1d4614a11f389a0e1a6cd96f20c3 Mon Sep 17 00:00:00 2001 From: Paddy Date: Mon, 13 Mar 2017 22:04:08 -0700 Subject: [PATCH] Update typo. We never updated the error to use the expectation, not hardcode it to 2. --- image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.go b/image.go index 500b601f..d21210d9 100644 --- a/image.go +++ b/image.go @@ -49,7 +49,7 @@ func resolveImageFamilyExists(c *Config, project, name string) (bool, error) { func sanityTestRegexMatches(expected int, got []string, regexType, name string) error { if len(got)-1 != expected { // subtract one, index zero is the entire matched expression - return fmt.Errorf("Expected %d %s regex matches, got %d for %s", 2, regexType, len(got)-1, name) + return fmt.Errorf("Expected %d %s regex matches, got %d for %s", expected, regexType, len(got)-1, name) } return nil }