Explicit error message for missing 32-bit binary support on 64-bit Linux

when starting IOU.
This commit is contained in:
grossmj 2014-04-27 21:52:24 -06:00
parent 6632af9776
commit e0488bb31f

View File

@ -475,6 +475,8 @@ class IOUDevice(object):
env=env) env=env)
log.info("IOU instance {} started PID={}".format(self._id, self._process.pid)) log.info("IOU instance {} started PID={}".format(self._id, self._process.pid))
self._started = True self._started = True
except FileNotFoundError as e:
raise IOUError("could not start IOU: {}: 32-bit binary support is probably not installed".format(e))
except OSError as e: except OSError as e:
iou_stdout = self.read_iou_stdout() iou_stdout = self.read_iou_stdout()
log.error("could not start IOU {}: {}\n{}".format(self._path, e, iou_stdout)) log.error("could not start IOU {}: {}\n{}".format(self._path, e, iou_stdout))