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.
response
1 parent e52f739 commit 97b45cdCopy full SHA for 97b45cd
lib/verify.js
@@ -59,9 +59,9 @@ module.exports = async (pluginConfig, context) => {
59
errors.push(getError('EGLNOPERMISSION', {repoId}));
60
}
61
} catch (error) {
62
- if (error.response.statusCode === 401) {
+ if (error.response && error.response.statusCode === 401) {
63
errors.push(getError('EINVALIDGLTOKEN', {repoId}));
64
- } else if (error.response.statusCode === 404) {
+ } else if (error.response && error.response.statusCode === 404) {
65
errors.push(getError('EMISSINGREPO', {repoId}));
66
} else {
67
throw error;
0 commit comments