Skip to content

Commit 7ca7c8f

Browse files
committed
compiletest: Give a better error message if node isn't installed
1 parent dd2b195 commit 7ca7c8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 2 additions & 2 deletions
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)