fix(ticket116): isoler crash plugin hello-plugin + erreur explicite UI
This commit is contained in:
@ -65,7 +65,14 @@ export class PluginCommandRegistry {
|
||||
async run(commandId: string, ...args: unknown[]): Promise<void> {
|
||||
const handler = this.handlers.get(commandId);
|
||||
if (!handler) return;
|
||||
await handler(...args);
|
||||
try {
|
||||
await handler(...args);
|
||||
} catch (e) {
|
||||
console.error(
|
||||
`[plugin:${this.pluginId}] command "${commandId}" failed`,
|
||||
e,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
has(commandId: string): boolean {
|
||||
|
||||
Reference in New Issue
Block a user