summaryrefslogtreecommitdiff
path: root/src/tools/compiletest
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-04-09 23:40:06 +0200
committerGitHub <noreply@github.com>2023-04-09 23:40:06 +0200
commitdd5942d77c44bd0f6baac5c2dc3e6f73df82015d (patch)
treea35be981cdf425e6d49e29ef54aa828cd4f5bed2 /src/tools/compiletest
parent782206455071c8c85a0d3fe6a33c6ba305160970 (diff)
parent7ca7c8fbf322171af8247509256c833b862f4618 (diff)
downloadrust-dd5942d77c44bd0f6baac5c2dc3e6f73df82015d.tar.gz
Rollup merge of #110114 - jyn514:wasm-errors, r=compiler-errors
compiletest: Give a better error message if `node` isn't installed
Diffstat (limited to 'src/tools/compiletest')
-rw-r--r--src/tools/compiletest/src/runtest.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs
index bd3a2c0f8ad..e55c82c4b63 100644
--- a/src/tools/compiletest/src/runtest.rs
+++ b/src/tools/compiletest/src/runtest.rs
@@ -2135,7 +2135,7 @@ 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
@@ -2143,7 +2143,7 @@ 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("wasm32 target requested and no NodeJS binary found (--nodejs)");
}
let src = self