Skip to content

Commit

Permalink
Fixed: can only wrap one error
Browse files Browse the repository at this point in the history
  • Loading branch information
its-josh4 authored Sep 11, 2023
1 parent e0b4ae6 commit 041f151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fsutil/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func SafeMove(src, dst string) error {
if err != nil {
copyErr := CopyFile(src, dst)
if copyErr != nil {
return fmt.Errorf("copying file during SaveMove failed with: '%w'; renaming file failed previously with: '%w'", copyErr, err)
return fmt.Errorf("copying file during SaveMove failed with: '%w'; renaming file failed previously with: '%v'", copyErr, err)
}

err = os.Remove(src)
Expand Down

0 comments on commit 041f151

Please sign in to comment.