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

Function isTeardownNavigationError

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

Source from the content-addressed store, hash-verified

163 * a failure to reach the server.
164 */
165const isTeardownNavigationError = (error: unknown, window: BrowserWindow): boolean =>
166 isExpectedNavigationAbort({
167 // 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
168 message: error instanceof Error ? error.message : String(error),
169 windowDestroyed: window.isDestroyed(),
170 appQuitting: isAppQuitting(),
171 });
172
173/**
174 * 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