mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Catch the OSError on the process failing.
This commit is contained in:
parent
ce0f7a19c3
commit
46dcbfc2bc
@ -88,6 +88,9 @@ class command:
|
|||||||
except subprocess.CalledProcessError, cpe:
|
except subprocess.CalledProcessError, cpe:
|
||||||
self.exit_code = cpe.returncode
|
self.exit_code = cpe.returncode
|
||||||
self.output = cpe.output
|
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()
|
self.end_time = datetime.datetime.now()
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user