mirror of
https://git.bits.team/Bits/mod-manager.git
synced 2025-07-16 16:09:43 -04:00
Added an error parameter to PrintUtils#error to allow logging of an accompany Error obj
This commit is contained in:
@ -47,7 +47,7 @@ export default class ModManager {
|
||||
static createLogger(): Logger {
|
||||
let logger = pino({base: {pid: undefined, hostname: undefined}}, pino.destination({dest: this.LOG_FILE}));
|
||||
process.on("uncaughtException", error => {
|
||||
logger.error(error);
|
||||
PrintUtils.error(error.message, error);
|
||||
setTimeout(() => process.exit(1), 1)
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user