Skip to content

Commit

Permalink
Log error when async node_helper fails during start
Browse files Browse the repository at this point in the history
  • Loading branch information
veeck committed Oct 19, 2022
1 parent d7c6ba9 commit e8d3757
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,15 @@ function App() {
}
}

Promise.allSettled(nodePromises).then(() => {
Log.log("Sockets connected & modules started ...");
Promise.allSettled(nodePromises).then((results) => {
// Log errors that happened during async node_helper startup
results.forEach((result) => {
if (result.status === "rejected") {
Log.error(result.reason);
}
});

Log.log("Sockets connected & modules started ...");
if (typeof callback === "function") {
callback(config);
}
Expand Down

0 comments on commit e8d3757

Please sign in to comment.