fix: dep fs errors
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
1 parent
ab15810701
commit
15b83a9959
1 file changed
+1
-1
+1
-1
@@ -50,7 +50,7 @@ func renameFallback(err error, src, dst string) error {
|
||||
if !ok {
|
||||
return err
|
||||
} else if terr.Err != syscall.EXDEV {
|
||||
return fmt.Errorf("link error: cannot rename %s to %s: %w", src, dst, err)
|
||||
return fmt.Errorf("link error: cannot rename %s to %s: %w", src, dst, terr)
|
||||
}
|
||||
|
||||
return renameByCopy(src, dst)
|
||||
|
||||
Reference in new issue
Block a user