config: clarify unknown variable error [GH-1480]
This commit is contained in:
parent
6761424309
commit
6514bf5f25
|
@ -3,6 +3,7 @@
|
||||||
BUG FIXES:
|
BUG FIXES:
|
||||||
|
|
||||||
* core: refresh won't remove outputs from state file [GH-1369]
|
* core: refresh won't remove outputs from state file [GH-1369]
|
||||||
|
* core: clarify "unknown variable" error [GH-1480]
|
||||||
* provider/aws: fix panic possibility if RDS DB name is empty [GH-1460]
|
* provider/aws: fix panic possibility if RDS DB name is empty [GH-1460]
|
||||||
* provider/aws: fix issue detecting credentials for some resources [GH-1470]
|
* provider/aws: fix issue detecting credentials for some resources [GH-1470]
|
||||||
* provider/google: fix issue causing unresolvable diffs when using legacy
|
* provider/google: fix issue causing unresolvable diffs when using legacy
|
||||||
|
|
|
@ -207,7 +207,7 @@ func (c *Config) Validate() error {
|
||||||
|
|
||||||
if _, ok := varMap[uv.Name]; !ok {
|
if _, ok := varMap[uv.Name]; !ok {
|
||||||
errs = append(errs, fmt.Errorf(
|
errs = append(errs, fmt.Errorf(
|
||||||
"%s: unknown variable referenced: %s",
|
"%s: unknown variable referenced: '%s'. define it with 'variable' blocks",
|
||||||
source,
|
source,
|
||||||
uv.Name))
|
uv.Name))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue