def HandleGcloudCrash(err):
    'Checks if installation error occurred, then proceeds with Error Reporting.\n\n  Args:\n    err: Exception err.\n  '
    err_string = console_attr.EncodeForConsole(err)
    log.file_only_logger.exception('BEGIN CRASH STACKTRACE')
    if _IsInstallationCorruption(err):
        _PrintInstallationAction(err, err_string)
    else:
        log.error(u'gcloud crashed ({0}): {1}'.format(getattr(err, 'error_name', type(err).__name__), err_string))
        ReportError(err, is_crash=True)
        log.err.Print('\nIf you would like to report this issue, please run the following command:')
        log.err.Print('  gcloud feedback')
        log.err.Print('\nTo check gcloud for common problems, please run the following command:')
        log.err.Print('  gcloud info --run-diagnostics')
Checks if installation error occurred, then proceeds with Error Reporting.

Args:
  err: Exception err.
def HandleGcloudCrash(err):
    'Checks if installation error occurred, then proceeds with Error Reporting.\n\n  Args:\n    err: Exception err.\n  '
    err_string = console_attr.EncodeForConsole(err)
    log.file_only_logger.exception('BEGIN CRASH STACKTRACE')
    if _IsInstallationCorruption(err):
        _PrintInstallationAction(err, err_string)
    else:
        log.error(u'gcloud crashed ({0}): {1}'.format(getattr(err, 'error_name', type(err).__name__), err_string))
        ReportError(err, is_crash=True)
        log.err.Print('\nIf you would like to report this issue, please run the following command:')
        log.err.Print('  gcloud feedback')
        log.err.Print('\nTo check gcloud for common problems, please run the following command:')
        log.err.Print('  gcloud info --run-diagnostics')