Commit e9a2d318 authored by Nikos Skalkotos's avatar Nikos Skalkotos

Change a ValueError exception to FatalError

parent 88f83027
...@@ -152,7 +152,7 @@ class Disk(object): ...@@ -152,7 +152,7 @@ class Disk(object):
self.out.success('looks like an image file') self.out.success('looks like an image file')
sourcedev = self._losetup(self.source) sourcedev = self._losetup(self.source)
elif not stat.S_ISBLK(mode): elif not stat.S_ISBLK(mode):
raise ValueError("Invalid media source. Only block devices, " raise FatalError("Invalid media source. Only block devices, "
"regular files and directories are supported.") "regular files and directories are supported.")
else: else:
self.out.success('looks like a block device') self.out.success('looks like a block device')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment