configs/configupgrade: return if hil.Parse() produces an error. (#20920)

Fixes #20917
This commit is contained in:
Kristin Laemmert 2019-04-03 14:20:59 -04:00 committed by GitHub
parent 51ddc554f5
commit 3aa4ac43f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ Value:
Detail: fmt.Sprintf("Interpolation parsing failed: %s", err),
Subject: hcl1PosRange(filename, tv.Pos).Ptr(),
})
return nil, diags
}
interpSrc, interpDiags := upgradeExpr(hilNode, filename, interp, an)