From f5c77af69ad498816f306c42548f76d72706cdc5 Mon Sep 17 00:00:00 2001 From: Alexander Ivantsov Date: Tue, 6 Oct 2015 17:05:01 +0500 Subject: [PATCH] fix error callstack in console --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index ed56747..f35d0b0 100644 --- a/src/index.js +++ b/src/index.js @@ -18,11 +18,11 @@ export default function catchErrors({ filename, components, imports }) { if (console.reportErrorsAsExceptions) { // Stop react-native from triggering its own error handler console.reportErrorsAsExceptions = false; - console.error(err); + console.error(err.stack); // Reactivate it so other errors are still handled console.reportErrorsAsExceptions = true; } else { - console.error(err); + console.error(err.stack); } return React.createElement(ErrorReporter, {