Add a basic error boundary for the entire app

This adds a basic error boundary around the entire app to catch errors during
rendering and present the user with the options on how to proceed. This is not
implemented as a modal so that it could be used selectively in portions of the
app as well, such as just the `RoomView`.

Fixes https://github.com/vector-im/riot-web/issues/11009
This commit is contained in:
J. Ryan Stinnett 2019-10-02 16:26:23 +01:00
parent 173a8543a7
commit 0e8dc24c3f
6 changed files with 169 additions and 37 deletions

View file

@ -226,7 +226,7 @@ export default class HelpUserSettingsTab extends React.Component {
</div>
<div className='mx_HelpUserSettingsTab_debugButton'>
<AccessibleButton onClick={this._onClearCacheAndReload} kind='danger'>
{_t("Clear Cache and Reload")}
{_t("Clear cache and reload")}
</AccessibleButton>
</div>
</div>