From 3acf32da2937a9fb29bbb43217741b7084261e35 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Sun, 11 Aug 2024 10:32:19 -0500 Subject: [PATCH] add more debug information Signed-off-by: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> --- src/handlers/event-utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/handlers/event-utils.ts b/src/handlers/event-utils.ts index 18492ac2..0d2bbe5f 100644 --- a/src/handlers/event-utils.ts +++ b/src/handlers/event-utils.ts @@ -231,7 +231,8 @@ export async function callInitPlugins(_module: Module, deps: Dependencies, emit? emitter?.emit('module.register', resultPayload('failure', module, result.error ?? SernError.PluginFailure)); } - throw Error(result.error ?? SernError.PluginFailure); + throw Error((result.error ?? SernError.PluginFailure) + + 'on module' + module.name + " " + module.meta.absPath); } } return module