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:
parent
c551ec89db
commit
9646db8410
@ -246,7 +246,7 @@ export async function monitorZoomProvider(opts: MonitorZoomOpts = {}): Promise<v
|
|||||||
</html>
|
</html>
|
||||||
`);
|
`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
runtime.error?.(`zoom: OAuth error: ${error}`);
|
runtime.error?.(`zoom: OAuth error: ${String(error)}`);
|
||||||
return res.status(500).send("Installation failed");
|
return res.status(500).send("Installation failed");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -302,7 +302,7 @@ export async function monitorZoomProvider(opts: MonitorZoomOpts = {}): Promise<v
|
|||||||
|
|
||||||
return res.json({ success: true });
|
return res.json({ success: true });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
runtime.error?.(`zoom: Webhook error: ${error}`);
|
runtime.error?.(`zoom: Webhook error: ${String(error)}`);
|
||||||
return res.status(500).json({ error: "Internal server error" });
|
return res.status(500).json({ error: "Internal server error" });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user