diff --git a/plugin-runtime/src/PluginHandle.ts b/plugin-runtime/src/PluginHandle.ts index 7addfd8a..fdfb87c7 100644 --- a/plugin-runtime/src/PluginHandle.ts +++ b/plugin-runtime/src/PluginHandle.ts @@ -79,14 +79,14 @@ export class PluginHandle { } async #handleError(err: Error) { - console.error('PLUGIN ERROR', this.pluginDir, err); + console.error('Plugin errored', this.pluginDir, err); } async #handleExit(code: number) { if (code === 0) { - console.log('PLUGIN EXITED SUCCESSFULLY'); + console.log('Plugin exited successfully', this.pluginDir); } else { - console.log('PLUGIN EXITED CODE', code); + console.log('Plugin exited with error', code, this.pluginDir); } } } diff --git a/plugin-runtime/src/index.worker.ts b/plugin-runtime/src/index.worker.ts index 794607b1..78c2c227 100644 --- a/plugin-runtime/src/index.worker.ts +++ b/plugin-runtime/src/index.worker.ts @@ -61,4 +61,6 @@ new Promise(async () => { replyErr(msg, err); } }); -}).catch((err) => console.log('failed to boot plugin', err)); +}).catch((err) => { + console.log('failed to boot plugin', err); +}); diff --git a/plugin-runtime/src/plugins.ts b/plugin-runtime/src/plugins.ts index a4ee5141..13eee780 100644 --- a/plugin-runtime/src/plugins.ts +++ b/plugin-runtime/src/plugins.ts @@ -10,7 +10,7 @@ export interface PluginInfo { export function loadPlugins(): PluginHandle[] { const pluginsDir = process.env.YAAK_PLUGINS_DIR; - if (!pluginsDir) throw new Error('PLUGINS_DIR is not set'); + if (!pluginsDir) throw new Error('YAAK_PLUGINS_DIR is not set'); console.log('Loading plugins from', pluginsDir); const pluginDirs = fs.readdirSync(pluginsDir).map((p) => path.join(pluginsDir, p)); diff --git a/src-web/components/GrpcProtoSelection.tsx b/src-web/components/GrpcProtoSelection.tsx index a594fad1..e2b121d1 100644 --- a/src-web/components/GrpcProtoSelection.tsx +++ b/src-web/components/GrpcProtoSelection.tsx @@ -131,7 +131,7 @@ export function GrpcProtoSelection({ requestId }: Props) { {reflectError && (

- Reflection failed on URL {request.url} + Reflection failed on URL {request.url || 'n/a'}

{reflectError}