Gregory Schier committed 2025-05-30 08:02:29 -07:00
1 parent 1e27e1d8cb
commit b52570bf58
8 files changed
+126 -54

No files matched your search

@@ -282,15 +282,9 @@ export class PluginInstance {
this.#importModule();
}
} catch (err) {
console.log('Plugin call threw exception', payload.type, err);
this.#sendPayload(
windowContext,
{
type: 'error_response',
error: `${err}`,
},
replyId,
);
const error = `${err}`.replace(/^Error:\s*/g, '');
console.log('Plugin call threw exception', payload.type, '→', error);
this.#sendPayload(windowContext, { type: 'error_response', error }, replyId);
return;
}