From 6a63be0ee5bc73c67aaa5819a215944177940454 Mon Sep 17 00:00:00 2001 From: Shuangquan Zhou Date: Tue, 16 Aug 2011 10:45:24 +0800 Subject: Enhanced chroot/convert --- tools/mic | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') 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) -- cgit v1.2.3