* Handles errors from snapshot operations. Returns true if the error was * handled (signal aborted during cleanup), false if it should be re-thrown.
(error: unknown, operation: string)
| 432 | * handled (signal aborted during cleanup), false if it should be re-thrown. |
| 433 | */ |
| 434 | function handleSnapshotError(error: unknown, operation: string): boolean { |
| 435 | if (signal.aborted) { |
| 436 | debug(`${logPrefix}Ignoring ${operation} error during cleanup: %o`, error) |
| 437 | return true |
| 438 | } |
| 439 | debug(`${logPrefix}Error in ${operation}: %o`, error) |
| 440 | return false |
| 441 | } |
| 442 | |
| 443 | const loadSubset = async (opts: LoadSubsetOptions) => { |
| 444 | if (isBufferingInitialSync()) { |