def _PrintErrorAndExit(stream, msg, exit_code=2):
  stream.write(msg)
  sys.exit(exit_code)
Prints the given error message and exists the program.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/appcfg.py/_PrintErrorAndExit