From 5cd981ade32b914095edcc20bb96f757dd30b7c6 Mon Sep 17 00:00:00 2001 From: QDIBYS Date: Thu, 18 Jul 2024 15:45:52 +0200 Subject: [PATCH] Add exception log.error --- .../java/fr/insee/kraftwerk/core/utils/files/FileSystemImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/kraftwerk-core/src/main/java/fr/insee/kraftwerk/core/utils/files/FileSystemImpl.java b/kraftwerk-core/src/main/java/fr/insee/kraftwerk/core/utils/files/FileSystemImpl.java index 43e6218e..5a13bcd6 100644 --- a/kraftwerk-core/src/main/java/fr/insee/kraftwerk/core/utils/files/FileSystemImpl.java +++ b/kraftwerk-core/src/main/java/fr/insee/kraftwerk/core/utils/files/FileSystemImpl.java @@ -174,6 +174,7 @@ public void moveFile(String srcPath, String dstPath) throws KraftwerkException { createDirectoryIfNotExist(Path.of(dstPath).getParent()); Files.move(Path.of(srcPath), Path.of(dstPath), StandardCopyOption.REPLACE_EXISTING); } catch (IOException e) { + log.error(e.toString()); throw new KraftwerkException(500, "Can't move file " + srcPath + " to " + dstPath); } }