diff --git a/front/src/Connexion/ConnectionManager.ts b/front/src/Connexion/ConnectionManager.ts index 897ac17c..41549a1d 100644 --- a/front/src/Connexion/ConnectionManager.ts +++ b/front/src/Connexion/ConnectionManager.ts @@ -363,7 +363,7 @@ class ConnectionManager { const token = localUserStore.getAuthToken(); if (!token) { - throw "No token provided"; + throw new Error("No token provided"); } const { worlds } = await Axios.get(`${PUSHER_URL}/worlds`, { params: { token } }).then((res) => {