handle default errors again
This commit is contained in:
parent
36c6110e39
commit
1967e0149c
@ -183,7 +183,10 @@ class App extends React.Component {
|
||||
return <div>Loading...</div>
|
||||
}
|
||||
renderError() {
|
||||
if (this.state.error.message === 'Network Error') {
|
||||
if (!this.state.error) {
|
||||
return <div>There was an error.</div>
|
||||
}
|
||||
else if (this.state.error.message === 'Network Error') {
|
||||
alert(`Failed to reach backend at\n${this.state.error.config.url}.`)
|
||||
} else {
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user