feat: debug print error stack
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
e55d48d713
commit
9b28cd4de0
@ -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