Anonymous committed e395307

explain how to work around exec problems in error message
patch by jbellis for CASSANDRA-4590

Comments (0)

Files changed (1)


         catch (IOException ex)
-            logger.error("Unable to create hard link", ex);
+            String st = osname.startsWith("Windows")
+                      ? "Unable to create hard link.  This probably means your data directory path is too long.  Exception follows:"
+                      : "Unable to create hard link with exec.  Suggest installing JNA to avoid the need to exec entirely.  Exception follows: ";
+            logger.error(st, ex);
             throw ex;