config: don't panic on parse error of variables

This commit is contained in:
Mitchell Hashimoto 2014-07-22 16:02:09 -07:00
parent 4f57437144
commit de1c23617a

View File

@ -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))
}
}