Skip to content

Commit 3894d2e

Browse files
committed
improve error msg for show-busy-java-threads.sh
1 parent 66f0856 commit 3894d2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

show-busy-java-threads.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,15 @@ elif which jstack &> /dev/null; then
128128
jstack_path="`which jstack`"
129129
else
130130
[ -z "$JAVA_HOME" ] && {
131-
redPrint "Error: jstack not found on PATH!" 1>&2
131+
redPrint "Error: jstack not found on PATH! Use -s option set jstack path manually." 1>&2
132132
exit 1
133133
}
134134
! [ -f "$JAVA_HOME/bin/jstack" ] && {
135-
redPrint "Error: jstack not found on PATH and \$JAVA_HOME/bin/jstack($JAVA_HOME/bin/jstack) file does NOT exists!" 1>&2
135+
redPrint "Error: jstack not found on PATH and \$JAVA_HOME/bin/jstack($JAVA_HOME/bin/jstack) file does NOT exists! Use -s option set jstack path manually." 1>&2
136136
exit 1
137137
}
138138
! [ -x "$JAVA_HOME/bin/jstack" ] && {
139-
redPrint "Error: jstack not found on PATH and \$JAVA_HOME/bin/jstack($JAVA_HOME/bin/jstack) is NOT executalbe!" 1>&2
139+
redPrint "Error: jstack not found on PATH and \$JAVA_HOME/bin/jstack($JAVA_HOME/bin/jstack) is NOT executalbe! Use -s option set jstack path manually." 1>&2
140140
exit 1
141141
}
142142
export PATH="$JAVA_HOME/bin:$PATH"

0 commit comments

Comments
 (0)