fix: fixed thrown error message (#280)

This accidentally got in as I was copypasting code as part of #277
This commit is contained in:
Jeroen Claassens 2020-08-16 11:27:40 +02:00 committed by GitHub
parent 74f3b710a6
commit 374d07635f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,7 @@ function getContributorsPage(githubUrl, optionalPrivateToken) {
headers: getFetchHeaders(optionalPrivateToken),
}).then(res => {
if (res.status === 404 || res.status >= 500) {
throw new Error('No contributors found on the GitLab repository')
throw new Error('No contributors found on the GitHub repository')
}
return res.json().then(body => {