mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-17 10:11:27 +00:00
Added messages to rethrown IOExceptions
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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