From 16b62a2545e97603a0331108a625f67211705181 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Fri, 5 Apr 2019 20:07:30 +0200 Subject: [PATCH] Print actual tx error instead of guessing --- integrations/github.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integrations/github.js b/integrations/github.js index 1c15890..e24f4e8 100644 --- a/integrations/github.js +++ b/integrations/github.js @@ -47,7 +47,8 @@ module.exports = async function(robot, kredits) { return Contribution.addContribution(contributionAttr).catch(error => { robot.logger.error(`[hubot-kredits] Error:`, error); - messageRoom(`I wanted to propose giving kredits to GitHub user ${githubUser} for ${url}, but I cannot find their info. Please add them as a contributor: https://kredits.kosmos.org`); + messageRoom(`I tried to add a contribution for ${githubUser} for ${url}, but I encountered an error when submitting the tx:`); + messageRoom(error.message); }); }); }