mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-06-09 21:52:35 +00:00
Added messages to rethrown IOExceptions
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user