Skip to content

Commit 2cefd30

Browse files
committed
bootstrap: If dir_is_empty fails, show the non-existent directory path
This should help when trying to debug issues.
1 parent 7349f6b commit 2cefd30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/bootstrap/src/utils/helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ fn lld_flag_no_threads(builder: &Builder<'_>, lld_mode: LldMode, is_windows: boo
438438
}
439439

440440
pub fn dir_is_empty(dir: &Path) -> bool {
441-
t!(std::fs::read_dir(dir)).next().is_none()
441+
t!(std::fs::read_dir(dir), dir).next().is_none()
442442
}
443443

444444
/// Extract the beta revision from the full version string.

0 commit comments

Comments
 (0)