Various logging cleanups

* don't just log errors without any context as to where they came from or what
   they mean
 * avoid the use of '%s' and multi-argument console.log because it looks awful
   under karma.
This commit is contained in:
Richard van der Hoff 2017-06-20 17:38:02 +01:00
parent 6de48d628f
commit cd73139af5
3 changed files with 12 additions and 10 deletions

View file

@ -330,7 +330,7 @@ module.exports = React.createClass({
defaultDeviceDisplayName: this.props.defaultDeviceDisplayName,
});
}).catch((e) => {
console.error("Unable to load session", e);
console.error(`Error attempting to load session from token params: ${e}`);
return false;
}).then((loadedSession) => {
if (!loadedSession) {