feat: debug print error stack

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
MiaoWoo 2020-07-06 17:41:15 +08:00
parent e55d48d713
commit 9b28cd4de0

View File

@ -106,6 +106,7 @@ export class PluginManagerImpl implements plugin.PluginManager {
process.emit(`plugin.after.${stage}`, plugin) process.emit(`plugin.after.${stage}`, plugin)
} catch (ex) { } catch (ex) {
console.i18n("ms.plugin.manager.stage.exec.error", { plugin: plugin.description.name, executor: stage, error: ex }) console.i18n("ms.plugin.manager.stage.exec.error", { plugin: plugin.description.name, executor: stage, error: ex })
if (global.debug) { console.ex(ex) }
} }
} }