better output for existing mapper
This commit is contained in:
+2
-1
@@ -133,7 +133,8 @@ class Disk:
|
|||||||
def _verify_mapper_entry_not_in_use(self):
|
def _verify_mapper_entry_not_in_use(self):
|
||||||
for item in MAPPER_PATH.iterdir():
|
for item in MAPPER_PATH.iterdir():
|
||||||
if self._mapper_entry == item.name:
|
if self._mapper_entry == item.name:
|
||||||
raise IOError(f"mapper entry {self._mapper_entry} already exists")
|
print(f"mapper entry {self._mapper_entry} already exists")
|
||||||
|
exit(1)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _path(self) -> Path:
|
def _path(self) -> Path:
|
||||||
|
|||||||
Reference in New Issue
Block a user