From 78262dcb32c2dd26ff378a6c407a9bc476e5e29e Mon Sep 17 00:00:00 2001 From: Daehoon Kim Date: Mon, 26 Jun 2017 14:30:17 +0900 Subject: [PATCH] Support javascript plain error object in crash.report --- lib/modules/crash/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/crash/index.js b/lib/modules/crash/index.js index 63cfa7e7..2b36553f 100644 --- a/lib/modules/crash/index.js +++ b/lib/modules/crash/index.js @@ -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`;