mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -06:00
config: don't panic on parse error of variables
This commit is contained in:
parent
4f57437144
commit
de1c23617a
@ -83,7 +83,8 @@ variable:
|
||||
var err error
|
||||
$$, err = NewInterpolatedVariable($1)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
exprErrors = append(exprErrors, fmt.Errorf(
|
||||
"Error parsing variable '%s': %s", $1, err))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user