internal/command: wrap formatted errors (#519)

This commit is contained in:
Lars Lehtonen
2023-09-21 05:45:28 -07:00
committed by GitHub
parent 487d9bc6a4
commit a257fc99e9
7 changed files with 11 additions and 11 deletions

View File

@@ -823,7 +823,7 @@ func (m *Meta) checkRequiredVersion() tfdiags.Diagnostics {
pwd, err := os.Getwd()
if err != nil {
diags = diags.Append(fmt.Errorf("Error getting pwd: %s", err))
diags = diags.Append(fmt.Errorf("Error getting pwd: %w", err))
return diags
}