fix: convert error to string in template expressions

Use String(error) to satisfy typescript-eslint restrict-template-expressions
rule for unknown error types in catch blocks.
This commit is contained in:
Pranav Katariya 2026-01-28 02:52:30 -08:00
parent c551ec89db
commit 9646db8410

View File

@ -246,7 +246,7 @@ export async function monitorZoomProvider(opts: MonitorZoomOpts = {}): Promise<v
</html>
`);
} catch (error) {
runtime.error?.(`zoom: OAuth error: ${error}`);
runtime.error?.(`zoom: OAuth error: ${String(error)}`);
return res.status(500).send("Installation failed");
}
});
@ -302,7 +302,7 @@ export async function monitorZoomProvider(opts: MonitorZoomOpts = {}): Promise<v
return res.json({ success: true });
} catch (error) {
runtime.error?.(`zoom: Webhook error: ${error}`);
runtime.error?.(`zoom: Webhook error: ${String(error)}`);
return res.status(500).json({ error: "Internal server error" });
}
});