MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isTeardownNavigationError

Function isTeardownNavigationError

apps/desktop/src/main/index.ts:164–170  ·  view source on GitHub ↗
(error: unknown, window: BrowserWindow)

Source from the content-addressed store, hash-verified

162 * a failure to reach the server.
163 */
164const isTeardownNavigationError = (error: unknown, window: BrowserWindow): boolean =>
165 isExpectedNavigationAbort({
166 // oxlint-disable-next-line executor/no-instanceof-error, executor/no-unknown-error-message -- boundary: Electron rejects loadURL with a plain Node Error carrying the net error name
167 message: error instanceof Error ? error.message : String(error),
168 windowDestroyed: window.isDestroyed(),
169 appQuitting: isAppQuitting(),
170 });
171
172/**
173 * Fire-and-forget navigation. The caller has no way to react to a failure, so

Callers 2

loadWindowUrlFunction · 0.85
createWindowFunction · 0.85

Calls 2

isAppQuittingFunction · 0.90

Tested by

no test coverage detected