mirror of https://github.com/vector-im/riot-web
more HomePage tweaks
* Don't log errors with no context * i18nify the "Couldn't load home page" messagepull/4557/head
parent
d25b441add
commit
bc60fa81af
|
@ -74,8 +74,8 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err || response.status < 200 || response.status >= 300) {
|
if (err || response.status < 200 || response.status >= 300) {
|
||||||
console.log(err);
|
console.warn(`Error loading home page: ${err}`);
|
||||||
this.setState({ page: "Couldn't load home page" });
|
this.setState({ page: _t("Couldn't load home page") });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue