mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
internal/builtin internal/cloud internal/command Wrap Errors (#413)
This commit is contained in:
@@ -208,7 +208,7 @@ func (c *FmtCommand) processFile(path string, r io.Reader, w io.Writer, isStdout
|
||||
if c.diff {
|
||||
diff, err := bytesDiff(src, result, path)
|
||||
if err != nil {
|
||||
diags = diags.Append(fmt.Errorf("Failed to generate diff for %s: %s", path, err))
|
||||
diags = diags.Append(fmt.Errorf("Failed to generate diff for %s: %w", path, err))
|
||||
return diags
|
||||
}
|
||||
w.Write(diff)
|
||||
|
||||
Reference in New Issue
Block a user