def _RaiseWithInfo(msg, error_desc):
  if msg:
    output = "%s: %s" % (msg, error_desc)
  else:
    output = error_desc
  raise qa_error.Error(output)
Raises a QA error with the given content, and adds a message if present.
dataset/ETHPy150Open ganeti/ganeti/qa/qa_utils.py/_RaiseWithInfo