Skip to content

Commit

Permalink
fix: error log output
Browse files Browse the repository at this point in the history
  • Loading branch information
zanix committed Oct 23, 2024
1 parent 3fa3778 commit 0a64fa2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions node_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = NodeHelper.create({
this.initComplete(payload);
})
.catch((error) => {
Log.error(`[${this.name}] Auth error:`, JSON.stringify(error));
Log.error(`[${this.name}] Auth error:`, JSON.stringify(error.toString()));

this.sendSocketNotification("MEALIE_ERROR", {
error: "AUTH_ERROR",
Expand Down Expand Up @@ -96,7 +96,7 @@ module.exports = NodeHelper.create({
this.getMeals(payload);
})
.catch((error) => {
Log.error(`[${this.name}] Auth error:`, JSON.stringify(error));
Log.error(`[${this.name}] Auth error:`, JSON.stringify(error.toString()));

this.sendSocketNotification("MEALIE_ERROR", {
error: "AUTH_ERROR",
Expand Down Expand Up @@ -180,7 +180,7 @@ module.exports = NodeHelper.create({
})
.catch((error) => {
this.outstandingRequest = false;
Log.error(`[${this.name}] Fetch error:`, JSON.stringify(error));
Log.error(`[${this.name}] Fetch error:`, JSON.stringify(error.toString()));

this.sendSocketNotification("MEALIE_ERROR", {
error: "FETCH_ERROR",
Expand Down

0 comments on commit 0a64fa2

Please sign in to comment.