We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d65e68f commit 2efcec9Copy full SHA for 2efcec9
src/utils/error.ts
@@ -54,12 +54,12 @@ export class FirebaseError extends Error implements FirebaseErrorInterface {
54
55
/** @returns The error code. */
56
public get code(): string {
57
- return this.errorInfo.code;
+ return this.errorInfo?.code;
58
}
59
60
/** @returns The error message. */
61
public get message(): string {
62
- return this.errorInfo.message;
+ return this.errorInfo?.message;
63
64
65
/** @returns The object representation of the error. */
0 commit comments