disable error fields in protocol response message if no errors

This commit is contained in:
Bogdan Pilyugin 2025-04-13 11:23:21 +02:00
parent 65c790ea8e
commit 45284cb4db

View File

@ -121,9 +121,9 @@ static sys_error_code PayloadDefaultTypeHandler(data_message_t *MSG)
jwEnd(&jwc);
jwEnd(&jwc);
GetSysErrorDetales((sys_error_code)MSG->err_code, &err_br, &err_desc);
jwObj_string(&jwc, "error", (char *)err_br);
jwObj_string(&jwc, "error_descr", (char *)err_desc);
//GetSysErrorDetales((sys_error_code)MSG->err_code, &err_br, &err_desc);
//jwObj_string(&jwc, "error", (char *)err_br);
//jwObj_string(&jwc, "error_descr", (char *)err_desc);
jwEnd(&jwc);
char *datap = strstr(MSG->outputDataBuffer, "\"data\":");