bootstrap: If dir_is_empty fails, show the non-existent directory path
This should help when trying to debug issues.
This commit is contained in:
parent
7349f6b503
commit
2cefd30eff
1 changed files with 1 additions and 1 deletions
|
@ -438,7 +438,7 @@ fn lld_flag_no_threads(builder: &Builder<'_>, lld_mode: LldMode, is_windows: boo
|
|||
}
|
||||
|
||||
pub fn dir_is_empty(dir: &Path) -> bool {
|
||||
t!(std::fs::read_dir(dir)).next().is_none()
|
||||
t!(std::fs::read_dir(dir), dir).next().is_none()
|
||||
}
|
||||
|
||||
/// Extract the beta revision from the full version string.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue