def ExceptionAppend(e, msg):
  if not e.args:
    e.args = (msg,)
  elif len(e.args) == 1:
    e.args = (str(e.args[0]) + ' ' + msg,)
  else:
    e.args = (str(e.args[0]) + ' ' + msg,) + e.args[1:]
Append a message to the given exception's message.
dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/common.py/ExceptionAppend