feat: debug print error stack
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
561d5b60e8
commit
0af3ca8c79
@ -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) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user