Merge pull request #1054 from matrix-org/rav/logging_for_timeline_load_fail
Add some logging around switching roomspull/21833/head
commit
22a4325ca3
|
@ -644,6 +644,17 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (roomInfo.room_alias) {
|
||||||
|
console.log(
|
||||||
|
`Switching to room alias ${roomInfo.room_alias} at event ` +
|
||||||
|
newState.initialEventId,
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
console.log(`Switching to room id ${roomInfo.room_id} at event ` +
|
||||||
|
newState.initialEventId,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// Wait for the first sync to complete so that if a room does have an alias,
|
// Wait for the first sync to complete so that if a room does have an alias,
|
||||||
// it would have been retrieved.
|
// it would have been retrieved.
|
||||||
let waitFor = q(null);
|
let waitFor = q(null);
|
||||||
|
|
|
@ -902,6 +902,9 @@ var TimelinePanel = React.createClass({
|
||||||
|
|
||||||
var onError = (error) => {
|
var onError = (error) => {
|
||||||
this.setState({timelineLoading: false});
|
this.setState({timelineLoading: false});
|
||||||
|
console.error(
|
||||||
|
`Error loading timeline panel at ${eventId}: ${error}`,
|
||||||
|
);
|
||||||
var msg = error.message ? error.message : JSON.stringify(error);
|
var msg = error.message ? error.message : JSON.stringify(error);
|
||||||
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue