Skip to content

Commit

Permalink
Bugfix: stringify error object for monitoring alert
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroCB committed Aug 15, 2020
1 parent 8681d88 commit 4f611dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "messenger-botcore",
"version": "2.2.0",
"version": "2.2.1",
"description": "A collection of tools for writing Facebook Messenger bots.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/monitoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function monitorLoop() {
}

function sendError(e) {
const errMsg = `Error detected with ${name}: ${e}.`;
const errMsg = `Error detected with ${name}: ${JSON.stringify(e)}.`;
// Attempt to re-login
if (retryFunc) {
login.login(credentials, (err, api) => {
Expand Down

0 comments on commit 4f611dd

Please sign in to comment.