MCPcopy Create free account
hub / github.com/vitest-dev/vitest / error

Function error

packages/browser/src/node/rpc.ts:112–115  ·  view source on GitHub ↗
(err: Error)

Source from the content-addressed store, hash-verified

110
111 // we don't throw an error inside a stream because this can segfault the process
112 function error(err: Error) {
113 console.error(err)
114 vitest.state.catchError(err, 'RPC Error')
115 }
116
117 function checkFileAccess(path: string) {
118 if (!isFileLoadingAllowed(vite.config, path)) {

Callers 1

setupBrowserRpcFunction · 0.70

Calls 2

errorMethod · 0.80
catchErrorMethod · 0.80

Tested by

no test coverage detected