app/jobs/assignment_repo/create_github_repository_job.rb
# Maps the type of error to a Datadog error
#
Maps the type of error to a Datadog error
Maps the type of error to a Datadog error
def report_error(err)
      case err.message
      when Creator::REPOSITORY_CREATION_FAILED
        GitHubClassroom.statsd.increment("v2_exercise_repo.create.repo.fail")
      when Creator::REPOSITORY_COLLABORATOR_ADDITION_FAILED
        GitHubClassroom.statsd.increment("v2_exercise_repo.create.adding_collaborator.fail")
      when Creator::REPOSITORY_STARTER_CODE_IMPORT_FAILED
        GitHubClassroom.statsd.increment("v2_exercise_repo.create.importing_starter_code.fail")
      else
        GitHubClassroom.statsd.increment("v2_exercise_repo.create.fail")
      end
    end
def report_error ( err ) case err . message when Creator :: REPOSITORY_CREATION_FAILED GitHubClassroom . statsd . increment ( "v2_exercise_repo.create.repo.fail" ) when Creator :: REPOSITORY_COLLABORATOR_ADDITION_FAILED GitHubClassroom . statsd . increment ( "v2_exercise_repo.create.adding_collaborator.fail" ) when Creator :: REPOSITORY_STARTER_CODE_IMPORT_FAILED GitHubClassroom . statsd . increment ( "v2_exercise_repo.create.importing_starter_code.fail" ) else GitHubClassroom . statsd . increment ( "v2_exercise_repo.create.fail" ) end end
Maps the type of error to a Datadog error
Maps the type of error to a Datadog error
err
<not_specific>