raise error if failed to download or run bootstrap
authorGui Chen <gui.chen@intel.com>
Fri, 29 Nov 2013 06:25:34 +0000 (01:25 -0500)
committerGui Chen <gui.chen@intel.com>
Wed, 4 Dec 2013 06:47:59 +0000 (01:47 -0500)
Change-Id: I71eac5ae3b84e66b76a94b29cac79c969129928b
Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/rt_util.py

index 41b607f..05a3fc8 100644 (file)
@@ -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: