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
This commit is contained in:
Nobuhito Kurose 2016-09-02 23:23:11 -07:00 committed by Facebook Github Bot 9
parent 367c71241a
commit 5ba40fe6ef
1 changed files with 1 additions and 1 deletions

View File

@ -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,