fix: Ошибка с последовательностью \n в print
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
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)();
|
||||
_send({"event": "sq_response", "uuid": data["uuid"], "data": result});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user