mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
init: return proper config errors (#24865)
Fixed a bug where we were returning earlyConfDiags instead of confDiags.
This commit is contained in:
parent
0749e419de
commit
0b76100da0
@ -165,7 +165,7 @@ func (c *InitCommand) Run(args []string) int {
|
|||||||
// error suggesting the user upgrade their config manually or with
|
// error suggesting the user upgrade their config manually or with
|
||||||
// Terraform v0.12
|
// Terraform v0.12
|
||||||
c.Ui.Error(strings.TrimSpace(errInitConfigErrorMaybeLegacySyntax))
|
c.Ui.Error(strings.TrimSpace(errInitConfigErrorMaybeLegacySyntax))
|
||||||
c.showDiagnostics(earlyConfDiags)
|
c.showDiagnostics(confDiags)
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user