Skip to content
Snippets Groups Projects
Commit 339ce282 authored by Vincent Massol's avatar Vincent Massol
Browse files

[Misc] Fix error message + try to get more information about the location when it happens

parent b31b0390
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,8 @@ private void configureTomcat(File sourceWARDirectory) throws Exception
// Configure Tomcat logging for debugging. Create a logging.properties file
File logFile = new File(sourceWARDirectory, "WEB-INF/classes/logging.properties");
if (!logFile.createNewFile()) {
throw new Exception(String.format("Failed to create logging configuration file at [%s]", logFile));
throw new Exception(String.format("Logging configuration file already exists at [%s]",
logFile.getAbsoluteFile()));
}
try (FileWriter writer = new FileWriter(logFile)) {
IOUtils.write("org.apache.catalina.core.ContainerBase.[Catalina].level = FINE\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment