From 815cbf19eb494d886a347348ce27afc21a2d8b4b Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Sat, 6 May 2023 23:23:24 -0500 Subject: [PATCH] feat: SernEmitter now captures promise rejections --- src/core/structures/sern-emitter.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/structures/sern-emitter.ts b/src/core/structures/sern-emitter.ts index 318a3d7..c25a665 100644 --- a/src/core/structures/sern-emitter.ts +++ b/src/core/structures/sern-emitter.ts @@ -7,6 +7,10 @@ import type { Module } from '../../types/module'; * @since 1.0.0 */ export class SernEmitter extends EventEmitter { + + constructor() { + super({ captureRejections: true }) + } /** * Listening to sern events with on. This event stays on until a crash or a normal exit * @param eventName