提交 78f87efb 编写于 作者: X xywang

[TS-1214]<fix>: added error details in some conditions

上级 bf7c7dce
...@@ -679,7 +679,11 @@ char *taos_errstr(TAOS_RES *tres) { ...@@ -679,7 +679,11 @@ char *taos_errstr(TAOS_RES *tres) {
} }
if (hasAdditionalErrorInfo(pSql->res.code, &pSql->cmd) || pSql->res.code == TSDB_CODE_RPC_FQDN_ERROR) { if (hasAdditionalErrorInfo(pSql->res.code, &pSql->cmd) || pSql->res.code == TSDB_CODE_RPC_FQDN_ERROR) {
return pSql->cmd.payload; if (pSql->cmd.payload[0] != '\0') {
return pSql->cmd.payload;
}
return (char*)tstrerror(pSql->res.code);
} else { } else {
return (char*)tstrerror(pSql->res.code); return (char*)tstrerror(pSql->res.code);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册