Skip to content

Commit

Permalink
Add exception log.error
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisszmundy committed Jul 18, 2024
1 parent 45a20e8 commit 5cd981a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 5cd981a

Please sign in to comment.