diff --git a/photon-server/src/main/java/org/photonvision/server/RequestHandler.java b/photon-server/src/main/java/org/photonvision/server/RequestHandler.java index 42b8e0a173..96666b82e7 100644 --- a/photon-server/src/main/java/org/photonvision/server/RequestHandler.java +++ b/photon-server/src/main/java/org/photonvision/server/RequestHandler.java @@ -497,7 +497,10 @@ private static Optional handleTempFileCreation(UploadedFile file) { if (!makeDirsRes && !(tempFilePath.getParentFile().exists())) { logger.error( - "There was an error while creating " + tempFilePath.getAbsolutePath() + "! Exists: " + tempFilePath.getParentFile().exists()); + "There was an error while creating " + + tempFilePath.getAbsolutePath() + + "! Exists: " + + tempFilePath.getParentFile().exists()); return Optional.empty(); } @@ -505,7 +508,10 @@ private static Optional handleTempFileCreation(UploadedFile file) { FileUtils.copyInputStreamToFile(file.content(), tempFilePath); } catch (IOException e) { logger.error( - "There was an error while copying " + file.filename() + " to the temp file " + tempFilePath.getAbsolutePath()); + "There was an error while copying " + + file.filename() + + " to the temp file " + + tempFilePath.getAbsolutePath()); return Optional.empty(); }