MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / install

Function install

apps/cloud/vite.config.ts:20–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18const devCrashGuard = (): Plugin => {
19 let installed = false;
20 const install = () => {
21 if (installed) return;
22 installed = true;
23 process.on("uncaughtException", (err, origin) => {
24 console.error(`[dev-crash-guard] uncaughtException (origin=${origin}):`, err);
25 });
26 process.on("unhandledRejection", (reason, promise) => {
27 console.error("[dev-crash-guard] unhandledRejection:", reason, promise);
28 });
29 };
30 return {
31 name: "dev-crash-guard",
32 apply: "serve",

Callers

nothing calls this directly

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected