command: Actually include the error when backend config decoding fails
This commit is contained in:
parent
91d2de6a25
commit
55b9c7eacd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue