Add some logging around switching rooms

... which I wish had been there when I was staring at a rageshake.
This commit is contained in:
Richard van der Hoff 2017-06-07 22:41:02 +01:00
parent ea02d8841c
commit 566fb2caeb
2 changed files with 14 additions and 0 deletions

View file

@ -902,6 +902,9 @@ var TimelinePanel = React.createClass({
var onError = (error) => {
this.setState({timelineLoading: false});
console.error(
`Error loading timeline panel at ${eventId}: ${error}`,
);
var msg = error.message ? error.message : JSON.stringify(error);
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");