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 561d5b60e8
commit 0af3ca8c79

View File

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