Log errors thrown by getThirdpartyProtocols

- so that it appears in rageshakes and test logs.
pull/4326/merge
Richard van der Hoff 2017-07-05 10:54:10 +01:00
parent 48889b51b0
commit 60703bdcfc
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ module.exports = React.createClass({
this.protocols = response;
this.setState({protocolsLoading: false});
}, (err) => {
console.warn(`error loading thirdparty protocols: ${err}`);
this.setState({protocolsLoading: false});
if (MatrixClientPeg.get().isGuest()) {
// Guests currently aren't allowed to use this API, so