less http specific

This commit is contained in:
Bruno Windels 2020-04-22 20:49:21 +02:00
parent 3359c6950f
commit a19e541e1e

View file

@ -86,7 +86,7 @@ export class SessionContainer {
} catch (err) {
this._error = err;
if (err instanceof HomeServerError) {
if (err.statusCode === 403) {
if (err.errcode === "M_FORBIDDEN") {
this._loginFailure = LoginFailure.Credentials;
} else {
this._loginFailure = LoginFailure.Unknown;