MCPcopy
hub / github.com/blitz-js/blitz / error

Method error

packages/blitz-rpc/src/rpc-logger.ts:165–172  ·  view source on GitHub ↗
(e: any)

Source from the content-addressed store, hash-verified

163 newLine()
164 }
165 public error(e: any) {
166 if (typeof e === "string" || e instanceof Error) {
167 this.#logger.error(e)
168 } else {
169 this.#logger.error(new Error(e))
170 }
171 newLine()
172 }
173 public warn(e: string) {
174 this.#logger.warn(e)
175 newLine()

Callers 15

rpcHandlerFunction · 0.95
handleRpcRequestFunction · 0.95
invokeWithCtxFunction · 0.95
webdriverFunction · 0.80
checkFunction · 0.80
retryFunction · 0.80
loadPageMethod · 0.80
evalMethod · 0.80
ErrorFunction · 0.80
mainFunction · 0.80
codegenFunction · 0.80

Calls 1

newLineFunction · 0.90

Tested by

no test coverage detected