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

fix string format bugs #602

Closed XN137 closed 7 years ago

XN137 commented 7 years ago

for some reason 2.2.3 is missing from http://archive.apache.org/dist/cassandra/2.2.3/ currently.

when doing ccm create test1 -v 2.2.3 -n 1 we get this error:

10:12:17,709 ccm WARNING Downloading 2.2.3 failed, due to not all arguments converted during string formatting. Trying to build from git instead.

after this PR:

→ ccm create test1 -v 2.2.3 -n 1
13:32:52,99 ccm WARNING Downloading 2.2.3 failed, trying to build from git instead.
The error was: Invalid version 2.2.3 (underlying error is: HTTP Error 404: Not Found)

i added the The error was: at the end so that we do not inline the exception message like that.

this PR also fixes this minor formatting issue:

 Building C* version git:cassandra-2.2.3 failed. Attempted to delete /home/jenkins/.ccm/repository/gitCOLONcassandra-2.2.3but failed. This will need to be manually deleted