MCPcopy
hub / github.com/vercel/next.js / handleFailure

Function handleFailure

test/lib/router-act.ts:547–554  ·  view source on GitHub ↗
(failedReq: Playwright.Request)

Source from the content-addressed store, hash-verified

545 }
546 }
547 const handleFailure = (failedReq: Playwright.Request) => {
548 if (failedReq.url() === req.url()) {
549 page.off('response', handleResponse)
550 page.off('requestfailed', handleFailure)
551 error.message = `Request failed: ${failedReq.failure()?.errorText || 'Unknown error'}\n\nURL: ${req.url()}`
552 reject(error)
553 }
554 }
555 page.on('response', handleResponse)
556 page.on('requestfailed', handleFailure)
557 })

Callers

nothing calls this directly

Calls 3

urlMethod · 0.65
rejectFunction · 0.50
offMethod · 0.45

Tested by

no test coverage detected