code: def exit_with_error(msg, details=None, code=-1):
      '''Exit with error'''
      error(msg, details)
      sys.exit(codef exit_with_error(msg, details=None, code=-1):
      '''Exit with error'''
      error(msg, details)
      sys.exit(code)
docs: Exit with error