mirror of https://github.com/apache/cassandra
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:
parent
a149163699
commit
b43e536f96
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue