Merge branch 'main' into dev

This commit is contained in:
SillyLossy
2023-04-09 15:07:33 +03:00

View File

@@ -741,6 +741,7 @@ app.post("/getcharacters", jsonParser, function (request, response) {
characters[i] = jsonObject; characters[i] = jsonObject;
i++; i++;
} catch (error) { } catch (error) {
console.log(`Could not read character: ${item}`);
if (error instanceof SyntaxError) { if (error instanceof SyntaxError) {
console.log("String [" + (i) + "] is not valid JSON!"); console.log("String [" + (i) + "] is not valid JSON!");
} else { } else {