cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject svn commit: r980560 - /cassandra/trunk/src/java/org/apache/cassandra/cli/CliMain.java
Date Thu, 29 Jul 2010 20:22:19 GMT
Author: eevans
Date: Thu Jul 29 20:22:19 2010
New Revision: 980560

URL: http://svn.apache.org/viewvc?rev=980560&view=rev
Log:
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

Modified:
    cassandra/trunk/src/java/org/apache/cassandra/cli/CliMain.java

Modified: cassandra/trunk/src/java/org/apache/cassandra/cli/CliMain.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/cli/CliMain.java?rev=980560&r1=980559&r2=980560&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/cli/CliMain.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/cli/CliMain.java Thu Jul 29 20:22:19 2010
@@ -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);
         }
     }
 



Mime
View raw message