fix: Ошибка с последовательностью \n в print

This commit is contained in:
AURUMVORXX
2025-10-31 20:56:11 +05:00
parent 8c556b9787
commit 13ce770ed6

View File

@@ -1,7 +1,7 @@
function _message_call(data) function _message_call(data)
{ {
local compile_string = "try { " + data["data"] + " } catch(id) { print(\"[PyG2O] Error white executing the code: \" + id + \"\\nCode: " + data["data"] + "\"); return null; }"; local compile_string = "try { " + data["data"] + " } catch(id) { print(\"[PyG2O] Error white executing the code: \" + id); return null; }";
local result = compilestring(compile_string)(); local result = compilestring(compile_string)();
_send({"event": "sq_response", "uuid": data["uuid"], "data": result}); _send({"event": "sq_response", "uuid": data["uuid"], "data": result});
} }