From 613e90067ee8d545eb1aea35bf622508a27f77d0 Mon Sep 17 00:00:00 2001 From: LSmyrnaios Date: Thu, 28 Nov 2024 18:35:16 +0200 Subject: [PATCH] Fix missing change. --- .../eu/openaire/publications_retriever/util/file/FileUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/openaire/publications_retriever/util/file/FileUtils.java b/src/main/java/eu/openaire/publications_retriever/util/file/FileUtils.java index 00b2680..5c4aab4 100644 --- a/src/main/java/eu/openaire/publications_retriever/util/file/FileUtils.java +++ b/src/main/java/eu/openaire/publications_retriever/util/file/FileUtils.java @@ -672,8 +672,8 @@ else if ( docFile.exists() ) // If it's not an already-known duplicate (this is if ( docFile.exists() ) FileDeleteStrategy.FORCE.delete(docFile); } catch (Exception e) { - logger.error("Error when deleting the half-created file: " + docFileName); } + logger.error("Error when deleting the half-created file: " + fileName); // The "fileOutputStream" was not created in this case, so no closing is needed. throw new FileNotRetrievedException(fnfe.getMessage()); } catch (Exception e) { // Mostly I/O and Security Exceptions.