MCPcopy
hub / github.com/vitejs/vite / throwClosedServerError

Function throwClosedServerError

packages/vite/src/node/server/pluginContainer.ts:128–136  ·  packages/vite/src/node/server/pluginContainer.ts::throwClosedServerError
()

Source from the content-addressed store, hash-verified

126export const ERR_CLOSED_SERVER = class="st">'ERR_CLOSED_SERVER'
127
128export function throwClosedServerError(): never {
129 const err: any = new Error(
130 class="st">'The server is being restarted or closed. Request is outdated',
131 )
132 err.code = ERR_CLOSED_SERVER
133 class="cm">// This error will be caught by the transform middleware that will
134 class="cm">// send a 504 status code request timeout
135 throw err
136}
137
138export interface PluginContainerOptions {
139 cwd?: string

Callers 6

transformRequestFunction · 0.90
loadAndTransformFunction · 0.90
resolveIdMethod · 0.85
loadMethod · 0.85
transformMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected