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

Merge pull request #10472 from taosdata/fix/TS-1214-D

[TS-1214]<fix>: added error details in some conditions
......@@ -696,7 +696,11 @@ char *taos_errstr(TAOS_RES *tres) {
}
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 {
return (char*)tstrerror(pSql->res.code);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册