We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b0fb895 + 640f93b commit 014f2c8Copy full SHA for 014f2c8
lib/github.js
@@ -24,7 +24,7 @@ module.exports.getPackageJson = async function getPackageJson (owner, repo) {
24
})
25
return (JSON.parse(resp.repository.object.text))
26
} catch (err) {
27
- if (err.errors && err.errors[0].type === 'NOT_FOUND') {
+ if (err.status === 404) {
28
throw Error(`Could not find GitHub repository at https://www.github.com/${owner}/${repo}`)
29
} else {
30
throw err
0 commit comments