Skip to content

Commit

Permalink
Rollup merge of #110114 - jyn514:wasm-errors, r=compiler-errors
Browse files Browse the repository at this point in the history
compiletest: Give a better error message if `node` isn't installed
  • Loading branch information
matthiaskrgr authored Apr 9, 2023
2 parents 4916371 + 7ca7c8f commit 9f3a751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2135,15 +2135,15 @@ impl<'test> TestCx<'test> {
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
} else if self.config.target.contains("wasm32") {
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
Expand Down

0 comments on commit 9f3a751

Please sign in to comment.