fix: match error message formatting and lockfile version for go linter/test compatibility

This commit is contained in:
PePe Amengual
2025-06-27 11:50:31 -07:00
parent 392d5165a9
commit a87a4cbaaa
2 changed files with 4 additions and 4 deletions

View File

@@ -2,8 +2,8 @@
# Manual edits may be lost in future updates.
provider "registry.terraform.io/hashicorp/null" {
version = "3.2.3"
constraints = "3.2.3"
version = "3.2.4"
constraints = "3.2.4"
hashes = [
"h1:+AnORRgFbRO6qqcfaQyeX80W0eX3VmjadjnUFUJTiXo=",
"h1:I0Um8UkrMUb81Fxq/dxbr3HLP2cecTH2WMJiwKSrwQY=",

View File

@@ -211,12 +211,12 @@ func (s Step) Validate() error {
case []interface{}:
for _, e := range t {
if _, ok := e.(string); !ok {
return fmt.Errorf("%q step %q option must contain only strings, found %v",
return fmt.Errorf("%q step %q option must contain only strings, found %v\n",
stepName, ShellArgsArgKey, e)
}
}
default:
return fmt.Errorf("%q step %q option must be a string or a list of strings, found %v",
return fmt.Errorf("%q step %q option must be a string or a list of strings, found %v\n",
stepName, ShellArgsArgKey, t)
}
delete(argMap, ShellArgsArgKey)