Skip to content

Commit f5a1e4d

Browse files
committed
reorder error properties
1 parent 47460e7 commit f5a1e4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/app-check/src/errors.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export const enum AppCheckError {
2727
STORAGE_GET = 'storage-get',
2828
STORAGE_WRITE = 'storage-set',
2929
RECAPTCHA_ERROR = 'recaptcha-error',
30-
THROTTLED = 'throttled',
31-
INITIAL_THROTTLE = 'initial-throttle'
30+
INITIAL_THROTTLE = 'initial-throttle',
31+
THROTTLED = 'throttled'
3232
}
3333

3434
const ERRORS: ErrorMap<AppCheckError> = {
@@ -68,8 +68,8 @@ interface ErrorParams {
6868
[AppCheckError.STORAGE_OPEN]: { originalErrorMessage?: string };
6969
[AppCheckError.STORAGE_GET]: { originalErrorMessage?: string };
7070
[AppCheckError.STORAGE_WRITE]: { originalErrorMessage?: string };
71-
[AppCheckError.THROTTLED]: { time: string; httpStatus: number };
7271
[AppCheckError.INITIAL_THROTTLE]: { time: string; httpStatus: number };
72+
[AppCheckError.THROTTLED]: { time: string; httpStatus: number };
7373
}
7474

7575
export const ERROR_FACTORY = new ErrorFactory<AppCheckError, ErrorParams>(

0 commit comments

Comments
 (0)