fix:[TD-31017]process return value in clientRawBlockWrite.c

This commit is contained in:
wangmm0220 2024-07-19 19:46:40 +08:00
parent 08440d1ab7
commit ccbbdce462
1 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ int32_t init_env() {
}
// pass NULL return last error code describe
const char* err = taos_errstr(NULL);
const char* err = tmq_err2str(error_code);
printf("write_raw_block return code =0x%x err=%s\n", error_code, err);
if(strcmp(err, "success") == 0) {
printf("expect failed , but error string is success! err=%s\n", err);
@ -185,7 +185,7 @@ int32_t init_env() {
goto END;
}
err = taos_errstr(NULL);
err = tmq_err2str(error_code);
printf("write_raw_block no exist table return code =0x%x err=%s\n", error_code, err);
if(strcmp(err, "success") == 0) {
printf("expect failed write no exist table, but error string is success! err=%s\n", err);