From ce5d5aac0282fa750a0c57bbb17c69ae1d2f3f51 Mon Sep 17 00:00:00 2001 From: Inga Lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Wed, 1 Mar 2017 13:39:04 +0300 Subject: [PATCH] Improved verbosity --- BuildServer/lib/commenter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BuildServer/lib/commenter.ts b/BuildServer/lib/commenter.ts index b9ee698..d980f3e 100644 --- a/BuildServer/lib/commenter.ts +++ b/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) {