Merge pull request #207 from hayanmind/feature/fix-crash-report

[crash] Support javascript plain error object in crash.report
This commit is contained in:
Elliot Hesp 2017-06-27 20:18:53 +01:00 committed by GitHub
commit 931a7943a1
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`;