Skip to content

Commit

Permalink
Error: Add more help when a component crashes.
Browse files Browse the repository at this point in the history
  • Loading branch information
negative0 committed Jun 17, 2020
1 parent d45cf61 commit e3fcf87
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/ErrorHandling/ErrorBoundary.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ class ErrorBoundary extends React.Component {
// logErrorToMyService(error, info);
// Send error to Rclone backend.
this.setState({error, info});


console.log("Hey");
}

render() {
Expand All @@ -37,15 +34,27 @@ class ErrorBoundary extends React.Component {
Try refreshing the page.
If the issue persists, please consider opening a new issue on our Github page.
</Col>

</Row>
<Row>
<Col>
Here are some things you can try:<br/>
1. Clear the local storage for this site.<br/>
2. Logout and login again using: <a className="btn btn-primary mb-3"
href="/#/login">Logout</a><br/>
3. If the issue persists, please consider opening a new issue on our Github
page.
<a href="https://github.com/negative0/rclone-webui-react/issues"
className="btn btn-primary">
Create new Issue.
</a>
</Col>
</Row>
<Row>
<Col>

</Col>
</Row>

</Col>
<Col lg={3} sm={12}/>
Expand Down

0 comments on commit e3fcf87

Please sign in to comment.