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

@@ -150,7 +150,7 @@ func (c *RefreshCommand) OperationRequest(be backend.Enhanced, view views.Refres
var err error
opReq.ConfigLoader, err = c.initConfigLoader()
if err != nil {
diags = diags.Append(fmt.Errorf("Failed to initialize config loader: %s", err))
diags = diags.Append(fmt.Errorf("Failed to initialize config loader: %w", err))
return nil, diags
}