Skip to content

Commit c9ee6ea

Browse files
Nits
1 parent d2ac3b0 commit c9ee6ea

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/firestore/src/local/simple_db.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ export class IndexedDbTransactionError extends FirestoreError {
412412

413413
constructor(cause: Error) {
414414
super(
415-
Code.UNKNOWN,
416-
'IndexedDB transaction failed with environment error: ' + cause
415+
Code.UNAVAILABLE,
416+
'IndexedDB transaction failed: ' + cause
417417
);
418418
}
419419
}

packages/firestore/src/util/async_queue.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { logDebug, logError } from './log';
2121
import { CancelablePromise, Deferred } from './promise';
2222
import { ExponentialBackoff } from '../remote/backoff';
2323
import { PlatformSupport } from '../platform/platform';
24-
import { IndexedDbTransactionError } from '../local/simple_db';
2524

2625
const LOG_TAG = 'AsyncQueue';
2726

@@ -320,7 +319,7 @@ export class AsyncQueue {
320319
* Enqueue a retryable operation.
321320
*
322321
* A retryable operation is rescheduled with backoff if it fails with a
323-
* SimpleDbTransactionError (the error type used by SimpleDb). All
322+
* IndexedDbTransactionError (the error type used by SimpleDb). All
324323
* retryable operations are executed in order and only run if all prior
325324
* operations were retried successfully.
326325
*/

0 commit comments

Comments
 (0)