🥅 Caught error where game doesn't start

This commit is contained in:
Mawoka
2022-04-25 13:13:13 +02:00
parent d4e3a7ee0c
commit d35cd9820d
+2 -1
View File
@@ -55,7 +55,8 @@
// }
});
if (res.status !== 200) {
throw new Error('Failed to start game');
alert('Failed to start game!');
console.error(`Failed to start game, ${await res.text()}`);
}
const data = await res.json();
// eslint-disable-next-line no-undef