From 5ba40fe6effae6b6e0d62d1ca04f3bff74e53333 Mon Sep 17 00:00:00 2001 From: Nobuhito Kurose Date: Fri, 2 Sep 2016 23:23:11 -0700 Subject: [PATCH] Improve loading error handling on Android WebView Summary: Loading invalid urls will happen in normal use so this line should be console.warn instead. Actually ios WebView uses console.warn for this. See https://github.com/facebook/react-native/issues/2904. Closes https://github.com/facebook/react-native/pull/9623 Differential Revision: D3815167 Pulled By: spicyj fbshipit-source-id: 0badb811b79d89d54c70b41692c609da0a3ef169 --- Libraries/Components/WebView/WebView.android.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Components/WebView/WebView.android.js b/Libraries/Components/WebView/WebView.android.js index 9be32cc2c..2c843de46 100644 --- a/Libraries/Components/WebView/WebView.android.js +++ b/Libraries/Components/WebView/WebView.android.js @@ -293,7 +293,7 @@ class WebView extends React.Component { var {onError, onLoadEnd} = this.props; onError && onError(event); onLoadEnd && onLoadEnd(event); - console.error('Encountered an error loading page', event.nativeEvent); + console.warn('Encountered an error loading page', event.nativeEvent); this.setState({ lastErrorEvent: event.nativeEvent,