未验证 提交 b9baf0eb 编写于 作者: M Minglei Jin 提交者: GitHub

Merge pull request #10476 from taosdata/fix/TS-1214-M

[TS-1214]<fix>: added error details in some conditions
...@@ -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.
先完成此消息的编辑!
想要评论请 注册