Merge pull request #809 from nosqlbench/nosqlbench-808

fix broken exception handler for missing file
This commit is contained in:
Jonathan Shook
2022-12-01 11:49:13 -06:00
committed by GitHub

View File

@@ -139,7 +139,7 @@ public class Cqld4Space implements AutoCloseable {
try {
username = Files.readAllLines(path).get(0);
} catch (IOException e) {
String error = "Error while reading username from file:" + usernameOpt.get();
String error = "Error while reading username from file:" + path;
logger.error(error, e);
throw new RuntimeException(e);
}
@@ -155,7 +155,7 @@ public class Cqld4Space implements AutoCloseable {
try {
password = Files.readAllLines(path).get(0);
} catch (IOException e) {
String error = "Error while reading password from file:" + passfileOpt.get();
String error = "Error while reading password from file:" + path;
logger.error(error, e);
throw new RuntimeException(e);
}