Support javascript plain error object in crash.report

This commit is contained in:
Daehoon Kim 2017-06-26 14:30:17 +09:00
parent 4cfaa7bece
commit 78262dcb32
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ export default class Crash {
* @param maxStackSize * @param maxStackSize
*/ */
report(error: FirebaseError, maxStackSize: number = 10): void { 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`; let errorMessage = `Message: ${error.message}\r\n`;