riptano / ccm

A script to easily create and destroy an Apache Cassandra cluster on localhost
Apache License 2.0
1.22k stars 303 forks source link

Remove "None" from output and show stderr on failed start #661

Closed guyboltonking closed 6 years ago

guyboltonking commented 6 years ago

When ccm node start --verbose fails, the stderr output is lost; in addition, None is printed:

ccm node1 start --verbose

None
Error starting node node1
Standard error output is:

With this patch, we see:

ccm node1 start --verbose

Error starting node node1
Standard error output is:
intx ThreadPriorityPolicy=42 is outside the allowed range [ 0 ... 1 ]
Improperly specified VM option 'ThreadPriorityPolicy=42'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

(which showed my problem to be an installed JDK 9 in the path combined with no set JAVA_HOME)