mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-16 03:32:54 -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
|
var err error
|
||||||
$$, err = NewInterpolatedVariable($1)
|
$$, err = NewInterpolatedVariable($1)
|
||||||
if err != nil {
|
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