summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorShuangquan Zhou <shuangquan.zhou@intel.com>2011-08-16 10:45:24 +0800
committerShuangquan Zhou <shuangquan.zhou@intel.com>2011-08-16 10:45:24 +0800
commit6a63be0ee5bc73c67aaa5819a215944177940454 (patch)
treeff29ab526f44160b97ace0f0dc4ea954d99f07a5 /tools
parent65365f976ec1f93b53d8106b250de40427b9fef8 (diff)
downloadmic-6a63be0ee5bc73c67aaa5819a215944177940454.tar.gz
mic-6a63be0ee5bc73c67aaa5819a215944177940454.tar.bz2
mic-6a63be0ee5bc73c67aaa5819a215944177940454.zip
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 8b54f45..35f05a9 100755
--- a/tools/mic
+++ b/tools/mic
@@ -74,7 +74,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)
@@ -124,7 +124,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)