don't assume cli err stream is System.err

This is a non-change, but protects a future where the cli's error
stream is substituted for something else.

Patch by eevans

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@980560 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eric Evans 2010-07-29 20:22:19 +00:00
parent a149163699
commit b43e536f96
1 changed files with 2 additions and 3 deletions

View File

@ -232,14 +232,13 @@ public class CliMain
{
css_.err.println(ire.why);
if (css_.debug)
ire.printStackTrace();
ire.printStackTrace(css_.err);
}
catch (Exception e)
{
css_.err.println("Exception " + e.getMessage());
if (css_.debug)
e.printStackTrace();
e.printStackTrace(css_.err);
}
}