From 46dcbfc2bcceda4d8a62fa6f7b11de1804932f4c Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Sun, 10 Nov 2013 12:30:23 +1100 Subject: [PATCH] Catch the OSError on the process failing. --- source-builder/sb/bootstrap.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source-builder/sb/bootstrap.py b/source-builder/sb/bootstrap.py index a968283..d91e584 100644 --- a/source-builder/sb/bootstrap.py +++ b/source-builder/sb/bootstrap.py @@ -88,6 +88,9 @@ class command: except subprocess.CalledProcessError, cpe: self.exit_code = cpe.returncode self.output = cpe.output + except OSError, ose: + raise error.general('bootstrap failed: %s in %s: %s' % \ + (' '.join(self.cmd), self.cwd, (str(ose)))) self.end_time = datetime.datetime.now() def run(self):