Improved verbosity

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 8 years ago
parent 49f1574d44
commit ce5d5aac02
  1. 4
      BuildServer/lib/commenter.ts

@ -39,7 +39,7 @@ const checkHasIssue = (options, issueNumber, callback) => options.github.issues.
}, (getIssueErr, result) => {
if (getIssueErr) {
if (getIssueErr.code !== httpNotFound) {
return callback(getIssueErr);
return callback(getIssueErr.message);
}
return callback(null, false);
@ -115,7 +115,7 @@ const checkPullRequest = (options, callback) => {
return checkHasIssue(options, issueNumber, (hasIssueErr, hasIssue, issueTitle) => {
if (hasIssueErr) {
return writeComment(options, `Unable to check for issue:\r\n\r\n${hasIssueErr.message}`, callback);
return writeComment(options, `Unable to check for issue:\r\n\r\n${hasIssueErr}`, callback);
}
if (!hasIssue) {

Loading…
Cancel
Save