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

Function onError

packages/vite/src/node/http.ts:198–202  ·  view source on GitHub ↗
(e: NodeJS.ErrnoException)

Source from the content-addressed store, hash-verified

196> {
197 return new Promise((resolve) => {
198 const onError = (e: NodeJS.ErrnoException) => {
199 httpServer.off('error', onError)
200 httpServer.off('listening', onListening)
201 resolve({ success: false, error: e })
202 }
203 const onListening = () => {
204 httpServer.off('error', onError)
205 httpServer.off('listening', onListening)

Callers

nothing calls this directly

Calls 2

resolveFunction · 0.70
offMethod · 0.65

Tested by

no test coverage detected