Skip to content

Commit

Permalink
add more debug information
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Nguyen <[email protected]>
  • Loading branch information
jacoobes committed Aug 11, 2024
1 parent 076f599 commit 3acf32d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/handlers/event-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3acf32d

Please sign in to comment.