Skip to content

Commit

Permalink
Updating logging because that is how it works... -_-
Browse files Browse the repository at this point in the history
  • Loading branch information
O-Mutt committed Aug 22, 2020
1 parent eb0b105 commit 2f2a1a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hubot-plusplus-expanded",
"version": "1.0.5",
"version": "1.0.6",
"description": "A hubot script for micro praise",
"main": "index.js",
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions src/scorekeeper.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class ScoreKeeper {
return saveResponse;
}
} catch (e) {
this.robot.logger.error(`failed to add point to [${toUser ? toUser.name : 'no to'}] from [${from ? from.name : 'no from'}] because [${reason}] object [${JSON.stringify(incScoreObj)}]`, e);
this.robot.logger.error(`failed to add point to [${user ? user : 'no to'}] from [${from ? from.name : 'no from'}] because [${reason}] object [${JSON.stringify(incScoreObj)}]`, e);
}
return [null, null];
}
Expand All @@ -145,7 +145,7 @@ class ScoreKeeper {
return saveResponse;
}
} catch (e) {
this.robot.logger.error(`failed to subtract point to [${toUser ? toUser.name : 'no to'}] from [${from ? from.name : 'no from'}] because [${reason}] object [${JSON.stringify(decScoreObj)}]`, e);
this.robot.logger.error(`failed to subtract point to [${user ? user : 'no to'}] from [${from ? from.name : 'no from'}] because [${reason}] object [${JSON.stringify(decScoreObj)}]`, e);
}
return [null, null];
}
Expand Down

0 comments on commit 2f2a1a9

Please sign in to comment.