Skip to content

Commit c12c29a

Browse files
committed
failure msg in *nix reflects missing java/javac
1 parent fb92231 commit c12c29a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎koans/run.sh‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ function exitOnError()
55
{
66
rc=$?
77
if [[ $rc != 0 ]] ; then
8+
echo ${1}' is missing from your PATH.'
89
exit $rc
910
fi
1011
}
@@ -19,8 +20,8 @@ function buildClasspath()
1920
done
2021
}
2122
javac -help > /dev/null 2>&1
22-
exitOnError
23+
exitOnError 'javac'
2324
java -version > /dev/null 2>&1
24-
exitOnError
25+
exitOnError 'java'
2526
buildClasspath "$DIR"/app
2627
java -classpath $classpath com.sandwich.koan.runner.AppLauncher "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"

0 commit comments

Comments
 (0)