Рефакторинг.

This commit is contained in:
sasha80
2025-10-01 11:57:21 +03:00
parent 293ca59936
commit 39bb436407
7 changed files with 36 additions and 35 deletions

View File

@@ -18,12 +18,12 @@ func _on_request_completed(result, _response_code, headers, body: PackedByteArra
log.error('\"%s\"' % rs)
return
var json_str: String = body.get_string_from_utf8()
var json_str: = body.get_string_from_utf8()
if not json_str:
push_error('не удаётся получить строку из utf8-данных (%s)' % headers)
return
var rc = json_conv.parse(json_str)
var rc: = json_conv.parse(json_str)
if rc != Error.OK:
var err = json_conv.get_error_message()
push_error('разбор json прерван - \"%s\" (%s)' % [err, headers])