Update app/common/src/main/java/stirling/software/common/util/GeneralUtils.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Ludy 2025-07-30 21:15:18 +02:00 committed by GitHub
parent ad72356d4f
commit 6798db23cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -553,7 +553,8 @@ public class GeneralUtils {
Files.move(tmp, target, StandardCopyOption.REPLACE_EXISTING);
}
} catch (FileAlreadyExistsException e) {
log.debug("File already exists at {}", target);
log.debug("File already exists at {}, attempting to replace it.", target);
Files.move(tmp, target, StandardCopyOption.REPLACE_EXISTING);
} catch (AccessDeniedException e) {
log.error("Access denied while attempting to copy resource to {}", target, e);
throw e;