update null variable error text

This commit is contained in:
James Bardin 2021-11-01 09:12:28 -04:00
parent b71b393cf6
commit 1f873776e8
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ func (n *nodeModuleVariable) evalModuleCallArgument(ctx EvalContext, validateOnl
diags = diags.Append(&hcl.Diagnostic{ diags = diags.Append(&hcl.Diagnostic{
Severity: hcl.DiagError, Severity: hcl.DiagError,
Summary: `Invalid variable value`, Summary: `Invalid variable value`,
Detail: fmt.Sprintf(`The resolved value of variable %q cannot be null.`, n.Addr), Detail: fmt.Sprintf(`The variable %q is required, but the given value resolved to null`, n.Addr),
Subject: &n.Config.DeclRange, Subject: &n.Config.DeclRange,
}) })
// Stub out our return value so that the semantic checker doesn't // Stub out our return value so that the semantic checker doesn't