From 1ef359e68b005964ed7e5ebcee4cb3be24c1ee07 Mon Sep 17 00:00:00 2001 From: JaniruTEC Date: Wed, 19 Aug 2020 15:45:54 +0200 Subject: [PATCH] Added messages to rethrown IOExceptions --- .../cryptomator/common/mountpoint/CustomMountPointChooser.java | 2 +- .../common/mountpoint/TemporaryMountPointChooser.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/commons/src/main/java/org/cryptomator/common/mountpoint/CustomMountPointChooser.java b/main/commons/src/main/java/org/cryptomator/common/mountpoint/CustomMountPointChooser.java index a186696cd..55ad471ad 100644 --- a/main/commons/src/main/java/org/cryptomator/common/mountpoint/CustomMountPointChooser.java +++ b/main/commons/src/main/java/org/cryptomator/common/mountpoint/CustomMountPointChooser.java @@ -67,7 +67,7 @@ public class CustomMountPointChooser implements MountPointChooser { throw new InvalidMountPointException(new DirectoryNotEmptyException(mountPoint.toString())); } } catch (IOException exception) { - throw new InvalidMountPointException(exception); + throw new InvalidMountPointException("IOException while checking folder content", exception); } } LOG.debug("Successfully checked custom mount point: {}", mountPoint); diff --git a/main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java b/main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java index f1dccce06..5924bf2ef 100644 --- a/main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java +++ b/main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java @@ -72,7 +72,7 @@ public class TemporaryMountPointChooser implements MountPointChooser { return true; } } catch (IOException exception) { - throw new InvalidMountPointException(exception); + throw new InvalidMountPointException("IOException while preparing mountpoint", exception); } }