Signed-off-by: Gui Chen <gui.chen@intel.com>
else:
raise errors.Usage("Extra argument given")
+ if not os.path.exists(srcimg):
+ raise errors.CreatorError("Failed to find the image: %s" % srcimg)
self._root_confirm()
srcformat = misc.get_image_type(srcimg)
else:
raise errors.Usage("Extra argument given")
+ if not os.path.exists(targetimage):
+ raise errors.CreatorError("Failed to find the image: %s"
+ % targetimage)
self._root_confirm()
imagetype = misc.get_image_type(targetimage)