Use fs_err for paths in symlinking errors (#13303)

In #13302, there was an IO error without context. This error seems to be
caused by a symlink error. Switching as symlinking to `fs_err` ensures
these errors will carry context in the future.
This commit is contained in:
konsti
2025-05-05 18:29:27 +02:00
committed by GitHub
parent f557ea3823
commit 3218e364ae
9 changed files with 18 additions and 14 deletions

View File

@@ -761,7 +761,7 @@ impl ManagedPythonDownload {
// to that date do not.
#[cfg(unix)]
{
match std::os::unix::fs::symlink(
match fs_err::os::unix::fs::symlink(
format!("python{}.{}", self.key.major, self.key.minor),
extracted.join("bin").join("python"),
) {