Skip to content

Commit 1f467c6

Browse files
committed
Add check for underlying tool and install hint
1 parent be3b709 commit 1f467c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tool.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ impl Tool {
6262
Ok(p) => p,
6363
};
6464

65+
if !path.exists() {
66+
eprintln!("Could not find tool: {}\nat: {}\nConsider `rustup component add llvm-tools-preview`", self.name(), path.to_string_lossy());
67+
process::exit(102)
68+
};
69+
6570
// Note: The first argument is the name of the binary (e.g. `rust-nm`)
6671
let args = env::args().skip(1);
6772

0 commit comments

Comments
 (0)