(root: Root, description: string | null, signal: AbortSignal, branchName?: string)
| 542 | * @returns Promise<TeleportToRemoteResponse | null> The created session or null if creation fails |
| 543 | */ |
| 544 | export async function teleportToRemoteWithErrorHandling(root: Root, description: string | null, signal: AbortSignal, branchName?: string): Promise<TeleportToRemoteResponse | null> { |
| 545 | const errorsToIgnore = new Set<TeleportLocalErrorType>(['needsGitStash']); |
| 546 | await handleTeleportPrerequisites(root, errorsToIgnore); |
| 547 | return teleportToRemote({ |
| 548 | initialMessage: description, |
| 549 | signal, |
| 550 | branchName, |
| 551 | onBundleFail: msg => process.stderr.write(`\n${msg}\n`) |
| 552 | }); |
| 553 | } |
| 554 | |
| 555 | /** |
| 556 | * Fetches session data from the session ingress API (/v1/session_ingress/) |
no test coverage detected