Skip to content

Commit 3cdb62d

Browse files
author
Mike Hearn
committed
Small fixes.
1 parent 30b3ac3 commit 3cdb62d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Start your Java programs as normal but run `nodejvm` instead of `java`, e.g.
2828
# Language injection
2929

3030
IntelliJ offers "language injection", which means a file can contain multiple languages at once. This is enabled
31-
automatically when using NodeJS/J but to benefit you should change a setting first:
31+
automatically when using NodeJVM but to benefit you should change a setting first:
3232

3333
1. Open your preferences and go to Editor > Language Injection > Advanced
3434
2. Under "Performance" select "Enable data flow analysis"

src/main/resources/nodejvm

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,16 @@ else
1818
node=`which node`
1919
fi
2020

21+
if [[ "$node" == "" ]]; then
22+
echo "No node binary found on your path. Consider setting \$GRAALVM_PATH to the bin directory of your GraalVM install."
23+
exit 1
24+
fi
25+
2126
$node --version:graalvm >/dev/null 2>/dev/null
2227
if [[ $? != 0 ]]; then
2328
echo "Running 'node --version:graalvm' failed."
24-
echo "Make sure the 'node' binary on your $PATH is the GraalVM version of node."
25-
echo "Alternatively set the environment variable $GRAALVM_PATH to the bin directory."
29+
echo "Make sure the '$node' binary on your \$PATH is the GraalVM version of node."
30+
echo "Alternatively set the environment variable \$GRAALVM_PATH to the bin directory."
2631
exit 1
2732
fi
2833

0 commit comments

Comments
 (0)