Skip to content

Commit dd5942d

Browse files
authored
Rollup merge of #110114 - jyn514:wasm-errors, r=compiler-errors
compiletest: Give a better error message if `node` isn't installed
2 parents 7822064 + 7ca7c8f commit dd5942d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/compiletest/src/runtest.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2135,15 +2135,15 @@ impl<'test> TestCx<'test> {
21352135
if let Some(ref p) = self.config.nodejs {
21362136
args.push(p.clone());
21372137
} else {
2138-
self.fatal("no NodeJS binary found (--nodejs)");
2138+
self.fatal("emscripten target requested and no NodeJS binary found (--nodejs)");
21392139
}
21402140
// If this is otherwise wasm, then run tests under nodejs with our
21412141
// shim
21422142
} else if self.config.target.contains("wasm32") {
21432143
if let Some(ref p) = self.config.nodejs {
21442144
args.push(p.clone());
21452145
} else {
2146-
self.fatal("no NodeJS binary found (--nodejs)");
2146+
self.fatal("wasm32 target requested and no NodeJS binary found (--nodejs)");
21472147
}
21482148

21492149
let src = self

0 commit comments

Comments
 (0)