mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge branch 'main' into dev
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user