MCPcopy Create free account
hub / github.com/ZToolsCenter/ZTools / fail

Method fail

src/main/api/renderer/webSearch.ts:426–432  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

424 let data = ''
425 let resolved = false
426 const fail = (error: Error): void => {
427 clearTimeout(timeout)
428 if (!resolved) {
429 resolved = true
430 reject(error)
431 }
432 }
433 const done = (value: string): void => {
434 clearTimeout(timeout)
435 if (!resolved) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected