Skip to content

Commit 4f611dd

Browse files
committed
Bugfix: stringify error object for monitoring alert
1 parent 8681d88 commit 4f611dd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "messenger-botcore",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "A collection of tools for writing Facebook Messenger bots.",
55
"main": "index.js",
66
"scripts": {

src/monitoring.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function monitorLoop() {
7676
}
7777

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

0 commit comments

Comments
 (0)