mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
internal/command: wrap formatted errors (#519)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user