mirror of https://github.com/vector-im/riot-web
Fix error when generating error for polling for updates (#25609)
parent
2d09b826d1
commit
2b31b8d9d8
|
@ -167,7 +167,7 @@ export default class WebPlatform extends VectorBasePlatform {
|
||||||
logger.error("Failed to poll for update", err);
|
logger.error("Failed to poll for update", err);
|
||||||
return {
|
return {
|
||||||
status: UpdateCheckStatus.Error,
|
status: UpdateCheckStatus.Error,
|
||||||
detail: err.message || err.status ? err.status.toString() : "Unknown Error",
|
detail: err.message || (err.status ? err.status.toString() : "Unknown Error"),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue