replace console log by error

Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
This commit is contained in:
Gregoire Parant 2021-11-16 11:23:18 +01:00
parent c1dc438138
commit ec1cc92c8b

View File

@ -112,7 +112,7 @@ export class Room {
this._contactPage = data.contactPage || CONTACT_URL; this._contactPage = data.contactPage || CONTACT_URL;
return new MapDetail(data.mapUrl, data.textures); return new MapDetail(data.mapUrl, data.textures);
} catch (e) { } catch (e) {
console.log("Error => getMapDetail", e, e.response); console.error("Error => getMapDetail", e, e.response);
//TODO fix me and manage Error class //TODO fix me and manage Error class
if (e.response?.data === "Token decrypted error") { if (e.response?.data === "Token decrypted error") {
localUserStore.setAuthToken(null); localUserStore.setAuthToken(null);