fix undefined unhandled rejection
This commit is contained in:
parent
fbb082fee8
commit
d04200742d
2
index.js
2
index.js
@ -1,6 +1,6 @@
|
||||
process.title = "lamp discord bot";
|
||||
process.on("unhandledRejection", error => {
|
||||
console.error("Unhandled Rejection:\n" + error.stack);
|
||||
console.error("Unhandled Rejection:\n" + (error.stack || error));
|
||||
});
|
||||
|
||||
require("./util"); // global variables set in here
|
||||
|
Loading…
x
Reference in New Issue
Block a user