fix undefined unhandled rejection

This commit is contained in:
Lamp 2022-07-17 21:24:35 -07:00
parent fbb082fee8
commit d04200742d

@ -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