mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Fix misuses of error macros
This commit is contained in:
parent
d6dde819be
commit
36bedd341a
11 changed files with 5 additions and 13 deletions
|
@ -46,7 +46,7 @@ Error GDScriptLanguageProtocol::LSPeer::handle_data() {
|
|||
while (true) {
|
||||
if (req_pos >= LSP_MAX_BUFFER_SIZE) {
|
||||
req_pos = 0;
|
||||
ERR_FAIL_COND_V_MSG(true, ERR_OUT_OF_MEMORY, "Response header too big");
|
||||
ERR_FAIL_V_MSG(ERR_OUT_OF_MEMORY, "Response header too big");
|
||||
}
|
||||
Error err = connection->get_partial_data(&req_buf[req_pos], 1, read);
|
||||
if (err != OK) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue