You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2014/06/18 21:19:11 UTC

[08/13] git commit: nodetool doesn't error when ~/.cassandra is inaccessible

nodetool doesn't error when ~/.cassandra is inaccessible

Patch by Kirk True, reviewed by brandonwilliams for CASSANDRA-6449


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/c1b5c270
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/c1b5c270
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/c1b5c270

Branch: refs/heads/trunk
Commit: c1b5c270df35bd9554d565c44cd409ec9d96b44f
Parents: 5d25a16
Author: Brandon Williams <br...@apache.org>
Authored: Wed Jun 18 14:16:26 2014 -0500
Committer: Brandon Williams <br...@apache.org>
Committed: Wed Jun 18 14:16:26 2014 -0500

----------------------------------------------------------------------
 src/java/org/apache/cassandra/tools/NodeCmd.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/c1b5c270/src/java/org/apache/cassandra/tools/NodeCmd.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/tools/NodeCmd.java b/src/java/org/apache/cassandra/tools/NodeCmd.java
index 1af1ec8..213e4b4 100644
--- a/src/java/org/apache/cassandra/tools/NodeCmd.java
+++ b/src/java/org/apache/cassandra/tools/NodeCmd.java
@@ -1531,7 +1531,7 @@ public class NodeCmd
             SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss,SSS");
             writer.append(sdf.format(new Date()) + ": " + cmdLine + "\n");
         }
-        catch (IOException ioe)
+        catch (IOException | IOError ioe)
         {
             //quietly ignore any errors about not being able to write out history
         }