3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-05 06:04:06 +00:00

Add special handling for command not found errors

Signed-off-by: Claire Wolf <clifford@clifford.at>
This commit is contained in:
Claire Wolf 2020-01-27 17:59:33 +01:00
parent c5dfa320df
commit a5fce77344

View file

@ -167,6 +167,13 @@ class SbyTask:
all_tasks_running.remove(self)
self.running = False
if self.p.returncode == 127:
self.job.status = "ERROR"
self.job.log("%s: COMMAND NOT FOUND. ERROR." % self.info)
self.terminated = True
self.job.terminate()
return
self.handle_exit(self.p.returncode)
if self.checkretcode and self.p.returncode != 0: