chore: print path when diff
parent
e8097aea19
commit
6463559962
|
@ -148,7 +148,7 @@ func (ft *Formatter) formatFile(path string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ft.isDiff {
|
if ft.isDiff {
|
||||||
if err := diff.Text("before", "after", pathBytes, formattedBytes, os.Stdout); err != nil {
|
if err := diff.Text(path+" before", path+" after", pathBytes, formattedBytes, os.Stdout); err != nil {
|
||||||
return fmt.Errorf("diff: failed to slices: %w", err)
|
return fmt.Errorf("diff: failed to slices: %w", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue