MCPcopy Index your code
hub / github.com/callstack/agent-device / cleanupAfterCreateSessionFailure

Function cleanupAfterCreateSessionFailure

src/cloud-webdriver/runtime.ts:442–456  ·  view source on GitHub ↗
(
  prepared: CloudWebDriverPreparedSession,
  primaryError: unknown,
)

Source from the content-addressed store, hash-verified

440}
441
442async function cleanupAfterCreateSessionFailure(
443 prepared: CloudWebDriverPreparedSession,
444 primaryError: unknown,
445): Promise<void> {
446 try {
447 await prepared.cleanup?.();
448 } catch (cleanupError) {
449 if (primaryError instanceof AppError) {
450 primaryError.details = {
451 ...primaryError.details,
452 cleanupError: errorMessage(cleanupError),
453 };
454 }
455 }
456}

Callers 1

Calls 1

errorMessageFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…