Threw the wrong exception

This commit is contained in:
Anton Hvornum 2021-02-07 13:39:39 +01:00
parent 53cdb607bc
commit 7123da1c56
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ if harddrive.has_partitions():
# Make sure that it's the selected drive mounted under /mnt
# That way, we can rely on genfstab and some manual post-installation steps.
if harddrive.has_mount_point(archinstall.storage['MOUNT_POINT']) is False:
raise archinstall.DiskException(f"The selected drive {harddrive} is not pre-mounted to {archinstall.storage['MOUNT_POINT']}. This is required when keeping a existing partitioning scheme.")
raise archinstall.DiskError(f"The selected drive {harddrive} is not pre-mounted to {archinstall.storage['MOUNT_POINT']}. This is required when keeping a existing partitioning scheme.")
else:
print('Formatting woop woop!')
exit(1)