]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blobdiff - vendor/github.com/zclconf/go-cty/cty/function/function.go
Upgrade to 0.12
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / zclconf / go-cty / cty / function / function.go
index 162f7bfcdeefee3b1ef860f2ac7064892362fb6f..9e8bf3376a8f6a8176fcd06cb0d5bb36dbb7a55d 100644 (file)
@@ -143,7 +143,7 @@ func (f Function) ReturnTypeForValues(args []cty.Value) (ty cty.Type, err error)
                val := posArgs[i]
 
                if val.IsNull() && !spec.AllowNull {
-                       return cty.Type{}, NewArgErrorf(i, "must not be null")
+                       return cty.Type{}, NewArgErrorf(i, "argument must not be null")
                }
 
                // AllowUnknown is ignored for type-checking, since we expect to be
@@ -169,7 +169,7 @@ func (f Function) ReturnTypeForValues(args []cty.Value) (ty cty.Type, err error)
                        realI := i + len(posArgs)
 
                        if val.IsNull() && !spec.AllowNull {
-                               return cty.Type{}, NewArgErrorf(realI, "must not be null")
+                               return cty.Type{}, NewArgErrorf(realI, "argument must not be null")
                        }
 
                        if val.Type() == cty.DynamicPseudoType {