Skip to content

Commit

Permalink
fix: log the error instead of throwing an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbuon committed Aug 16, 2024
1 parent 1ad4cc0 commit fafa23c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ private DiskQueue(Builder builder) {

if (!this.queueFolder.exists()) {
if (!this.queueFolder.mkdirs()) {
throw new RuntimeException("Could not create folder: " + queueFolder);
LOGGER.error("Could not create folder: {}", queueFolder);
}
}

if (!this.queueFolder.canRead() || !this.queueFolder.canWrite()) {
throw new RuntimeException("Not enough permissions folder: " + queueFolder);
LOGGER.error("Not enough permissions folder: {}", queueFolder);
}
}

Expand Down

0 comments on commit fafa23c

Please sign in to comment.