summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJF Ding <jian-feng.ding@intel.com>2011-08-16 14:19:34 +0800
committerGerrit Code Review <gerrit2@gerrit.bj.intel.com>2011-08-16 14:19:34 +0800
commite91ec7e6b2fa6859d9ea6b39212c971221e638cd (patch)
treef7548d275d2c29ad3502c411abd9287b09352d46 /tools
parenta2fa4c2009c0028542b305db773f7076b6eb73d0 (diff)
parent6a63be0ee5bc73c67aaa5819a215944177940454 (diff)
downloadmic-e91ec7e6b2fa6859d9ea6b39212c971221e638cd.tar.gz
mic-e91ec7e6b2fa6859d9ea6b39212c971221e638cd.tar.bz2
mic-e91ec7e6b2fa6859d9ea6b39212c971221e638cd.zip
Merge "Enhanced chroot/convert"
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mic4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mic b/tools/mic
index 06ea75a..827f3c1 100755
--- a/tools/mic
+++ b/tools/mic
@@ -91,7 +91,7 @@ class Mic(cmdln.Cmdln):
destimager = icls
if (srcimager and destimager) is None:
- raise CreatorError("Can't convert from %s to %s" %(srcformat, destformat))
+ raise errors.CreatorError("Can't convert from %s to %s" %(srcformat, destformat))
else:
base_on = srcimager.do_unpack(srcimg)
destimager.do_pack(base_on)
@@ -141,7 +141,7 @@ class Mic(cmdln.Cmdln):
break
if not chrootclass:
- raise CreatorError("Don't support image type: %s" % imagetype)
+ raise errors.CreatorError("Don't support image type: %s" % imagetype)
chrootclass.do_chroot(targetimage)