diff options
| author | Joshua Nelson <github@jyn.dev> | 2023-04-09 12:36:30 -0500 |
|---|---|---|
| committer | Joshua Nelson <github@jyn.dev> | 2023-04-09 12:36:30 -0500 |
| commit | 7ca7c8fbf322171af8247509256c833b862f4618 (patch) | |
| tree | 5fd144bd7876c7095b926e28c550403b08eca14b /src | |
| parent | dd2b19539ea4d62a150cf13d45942e58b6b44e54 (diff) | |
| download | rust-7ca7c8fbf322171af8247509256c833b862f4618.tar.gz rust-7ca7c8fbf322171af8247509256c833b862f4618.zip | |
compiletest: Give a better error message if `node` isn't installed
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index a35284f05b5..1a4b2bdb4e1 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 |
