feat: debug print error stack

Signed-off-by: MiaoWoo <admin@yumc.pw>
backup
MiaoWoo 2020-07-06 17:41:15 +08:00
parent e55d48d713
commit 9b28cd4de0
1 changed files with 1 additions and 0 deletions

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) }
}
}