From 6514bf5f2574b25198e1173e4fdecbf4679d25e0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 10 Apr 2015 16:45:15 -0700 Subject: [PATCH] config: clarify unknown variable error [GH-1480] --- CHANGELOG.md | 1 + config/config.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d750e97ad..9da6c77cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ BUG FIXES: * 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 issue detecting credentials for some resources [GH-1470] * provider/google: fix issue causing unresolvable diffs when using legacy diff --git a/config/config.go b/config/config.go index aabc42260..5814141f8 100644 --- a/config/config.go +++ b/config/config.go @@ -207,7 +207,7 @@ func (c *Config) Validate() error { if _, ok := varMap[uv.Name]; !ok { errs = append(errs, fmt.Errorf( - "%s: unknown variable referenced: %s", + "%s: unknown variable referenced: '%s'. define it with 'variable' blocks", source, uv.Name)) }