mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
Fix error message.
This commit is contained in:
parent
7f86ed35a3
commit
fc3287c49f
1 changed files with 1 additions and 2 deletions
|
@ -92,9 +92,8 @@ class ScalarAuthClient {
|
||||||
} else if (response.statusCode / 100 !== 2) {
|
} else if (response.statusCode / 100 !== 2) {
|
||||||
defer.reject({statusCode: response.statusCode});
|
defer.reject({statusCode: response.statusCode});
|
||||||
} else if (!body) {
|
} else if (!body) {
|
||||||
defer.reject(new Error("Missing scalar_token in response"));
|
defer.reject(new Error("Missing page_title in response"));
|
||||||
} else {
|
} else {
|
||||||
console.warn("page title body", body);
|
|
||||||
let title = "";
|
let title = "";
|
||||||
if (body.page_title_cache_item && body.page_title_cache_item.cached_title) {
|
if (body.page_title_cache_item && body.page_title_cache_item.cached_title) {
|
||||||
title = body.page_title_cache_item.cached_title;
|
title = body.page_title_cache_item.cached_title;
|
||||||
|
|
Loading…
Reference in a new issue