Support javascript plain error object in crash.report
This commit is contained in:
parent
4cfaa7bece
commit
78262dcb32
|
@ -56,7 +56,7 @@ export default class Crash {
|
|||
* @param maxStackSize
|
||||
*/
|
||||
report(error: FirebaseError, maxStackSize: number = 10): void {
|
||||
if (!error || !error.code || !error.message) return;
|
||||
if (!error || !error.message) return;
|
||||
|
||||
let errorMessage = `Message: ${error.message}\r\n`;
|
||||
|
||||
|
|
Loading…
Reference in New Issue