Skip to content

Commit

Permalink
fix ConfigUtil error message
Browse files Browse the repository at this point in the history
Change-Id: Id6d9d6207a67ce2587d8d923c7ce9455c14eed9f
  • Loading branch information
javeme committed Dec 27, 2021
1 parent ea6946c commit 82cdc9b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public static void checkGremlinConfig(String conf) {
try {
yamlConfig.load(conf);
} catch (ConfigurationException e) {
throw new HugeException("Failed to load yaml config file ", conf);
throw new HugeException("Failed to load yaml config file '%s'",
conf);
}
List<ConfigurationNode> nodes = yamlConfig.getRootNode()
.getChildren(NODE_GRAPHS);
Expand Down Expand Up @@ -100,7 +101,7 @@ public static void writeToFile(String dir, String graphName,
config.setFileName(fileName);
LOG.info("Write HugeConfig to file: '{}'", fileName);
} catch (IOException | ConfigurationException e) {
throw new HugeException("Failed to write HugeConfig to file '{}'",
throw new HugeException("Failed to write HugeConfig to file '%s'",
e, fileName);
}
}
Expand All @@ -112,7 +113,7 @@ public static void deleteFile(File file) {
try {
FileUtils.forceDelete(file);
} catch (IOException e) {
throw new HugeException("Failed to delete HugeConfig file '{}'",
throw new HugeException("Failed to delete HugeConfig file '%s'",
e, file);
}
}
Expand Down

0 comments on commit 82cdc9b

Please sign in to comment.