diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2025-01-04 10:47:24 +0200 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2025-01-04 10:48:37 +0200 |
| commit | 2cefd30eff1540e5f2b4eaeadfe8b05b11e7515d (patch) | |
| tree | bff195440930e9a6149762b962fdef4437d9da9b /src | |
| parent | 7349f6b50359fd1f11738765b8deec5ee02d8710 (diff) | |
| download | rust-2cefd30eff1540e5f2b4eaeadfe8b05b11e7515d.tar.gz rust-2cefd30eff1540e5f2b4eaeadfe8b05b11e7515d.zip | |
bootstrap: If dir_is_empty fails, show the non-existent directory path
This should help when trying to debug issues.
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/src/utils/helpers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/src/utils/helpers.rs b/src/bootstrap/src/utils/helpers.rs index 985d733a41f..0c1a10c27d6 100644 --- a/src/bootstrap/src/utils/helpers.rs +++ b/src/bootstrap/src/utils/helpers.rs @@ -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. |
