Skip to content

Commit 9535151

Browse files
committed
Improve error message when a submodule directory is missing completely
1 parent c62239a commit 9535151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/bootstrap/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ impl Build {
488488
}
489489
self.config.update_submodule(submodule);
490490
let absolute_path = self.config.src.join(submodule);
491-
if dir_is_empty(&absolute_path) {
491+
if !absolute_path.exists() || dir_is_empty(&absolute_path) {
492492
let maybe_enable = if !self.config.submodules()
493493
&& self.config.rust_info.is_managed_git_subrepository()
494494
{

0 commit comments

Comments
 (0)