From bc60fa81af90c5c5c5a91b4f3701f7a9154afe23 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 11 Jul 2017 14:29:47 +0100 Subject: [PATCH] more HomePage tweaks * Don't log errors with no context * i18nify the "Couldn't load home page" message --- src/components/structures/HomePage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/structures/HomePage.js b/src/components/structures/HomePage.js index df8cc33e..bdba55eb 100644 --- a/src/components/structures/HomePage.js +++ b/src/components/structures/HomePage.js @@ -74,8 +74,8 @@ module.exports = React.createClass({ } if (err || response.status < 200 || response.status >= 300) { - console.log(err); - this.setState({ page: "Couldn't load home page" }); + console.warn(`Error loading home page: ${err}`); + this.setState({ page: _t("Couldn't load home page") }); return; }