Przeglądaj źródła

Added messages to rethrown IOExceptions

JaniruTEC 4 lat temu
rodzic
commit
1ef359e68b

+ 1 - 1
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);

+ 1 - 1
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);
 		}
 	}