fix: dep fs errors

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
pull/30800/head
Matthieu MOREL 5 months ago
parent ab15810701
commit 15b83a9959

@ -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)

Loading…
Cancel
Save