command: Actually include the error when backend config decoding fails

This commit is contained in:
Martin Atkins 2018-10-09 16:50:57 -07:00
parent 91d2de6a25
commit 55b9c7eacd
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ func (c *PlanCommand) Run(args []string) int {
diags = diags.Append(tfdiags.Sourceless(
tfdiags.Error,
"Invalid backend initialization",
fmt.Sprintf("The backend configuration for this working directory is not valid: %s.\n\nIf you have recently upgraded Terraform, you may need to re-run \"terraform init\" to re-initialize this working directory."),
fmt.Sprintf("The backend configuration for this working directory is not valid: %s.\n\nIf you have recently upgraded Terraform, you may need to re-run \"terraform init\" to re-initialize this working directory.", err),
))
c.showDiagnostics(diags)
return 1