Added messages to rethrown IOExceptions

This commit is contained in:
JaniruTEC
2020-08-19 15:45:54 +02:00
parent 3ecc0cf906
commit 1ef359e68b
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);
}
}