mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 02:48:17 +00:00
Name the directory whose lock we're waiting on (#700)
This commit is contained in:
parent
114548d945
commit
9e2bbee7f0
1 changed files with 4 additions and 1 deletions
|
@ -104,7 +104,10 @@ impl LockedFile {
|
|||
match file.file().try_lock_exclusive() {
|
||||
Ok(()) => Ok(Self(file)),
|
||||
Err(err) if err.kind() == std::io::ErrorKind::WouldBlock => {
|
||||
warn_user!("Waiting to acquire lock on directory");
|
||||
warn_user!(
|
||||
"Waiting to acquire lock on {}",
|
||||
path.as_ref().parent().unwrap_or(path.as_ref()).display()
|
||||
);
|
||||
file.file().lock_exclusive()?;
|
||||
Ok(Self(file))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue