Skip to content

Commit

Permalink
fix: display path on error (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl authored Sep 9, 2024
1 parent 5f29621 commit 971659f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reviser/dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (d *SourceDir) walk(callback walkCallbackFunc, options ...SourceFileOption)
if isGoFile(path) && !dirEntry.IsDir() && !d.isExcluded(path) {
content, _, hasChange, err := NewSourceFile(d.projectName, path).Fix(options...)
if err != nil {
return fmt.Errorf("failed to fix: %w", err)
return fmt.Errorf("failed to fix %s: %w", path, err)
}
return callback(hasChange, path, content)
}
Expand Down

0 comments on commit 971659f

Please sign in to comment.