From cbc7996d85662310691e99e8720d0f55300ae597 Mon Sep 17 00:00:00 2001 From: Gui Chen Date: Fri, 29 Nov 2013 01:25:34 -0500 Subject: [PATCH] raise error if failed to download or run bootstrap Change-Id: I71eac5ae3b84e66b76a94b29cac79c969129928b Signed-off-by: Gui Chen --- mic/rt_util.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mic/rt_util.py b/mic/rt_util.py index 41b607f..05a3fc8 100644 --- a/mic/rt_util.py +++ b/mic/rt_util.py @@ -118,14 +118,12 @@ def bootstrap_mic(argv=None): ret = bsenv.run(argv, cwd, rootdir, bindmounts) except errors.BootstrapError, err: - msger.warning('\n%s' % err) - if msger.ask("Switch to native mode and continue?", False): - return - raise + raise errors.CreatorError("Failed to download/install bootstrap package " \ + "or the package is in bad format: %s" % err) except RuntimeError, err: #change exception type but keep the trace back value, tb = sys.exc_info()[1:] - raise errors.BootstrapError, value, tb + raise errors.CreatorError, value, tb else: sys.exit(ret) finally: -- 2.7.4