mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
Rollup merge of #110114 - jyn514:wasm-errors, r=compiler-errors
compiletest: Give a better error message if `node` isn't installed
This commit is contained in:
@@ -2135,7 +2135,7 @@ fn make_run_args(&self) -> ProcArgs {
|
||||
if let Some(ref p) = self.config.nodejs {
|
||||
args.push(p.clone());
|
||||
} else {
|
||||
self.fatal("no NodeJS binary found (--nodejs)");
|
||||
self.fatal("emscripten target requested and no NodeJS binary found (--nodejs)");
|
||||
}
|
||||
// If this is otherwise wasm, then run tests under nodejs with our
|
||||
// shim
|
||||
@@ -2143,7 +2143,7 @@ fn make_run_args(&self) -> ProcArgs {
|
||||
if let Some(ref p) = self.config.nodejs {
|
||||
args.push(p.clone());
|
||||
} else {
|
||||
self.fatal("no NodeJS binary found (--nodejs)");
|
||||
self.fatal("wasm32 target requested and no NodeJS binary found (--nodejs)");
|
||||
}
|
||||
|
||||
let src = self
|
||||
|
||||
Reference in New Issue
Block a user