提交 c5cbc524 编写于 作者: Z zyyang

change

上级 04b30a8e
...@@ -201,9 +201,9 @@ TAOS *taos_connect_internal(const char *ip, const char *user, const char *pass, ...@@ -201,9 +201,9 @@ TAOS *taos_connect_internal(const char *ip, const char *user, const char *pass,
if (pSql->res.code != TSDB_CODE_SUCCESS) { if (pSql->res.code != TSDB_CODE_SUCCESS) {
terrno = pSql->res.code; terrno = pSql->res.code;
if (terrno ==TSDB_CODE_RPC_FQDN_ERROR) { if (terrno ==TSDB_CODE_RPC_FQDN_ERROR) {
printf("taos connect failed, reason: %s\n\n", taos_errstr(pSql)); printf("connect failed, reason: %s\n\n", taos_errstr(pSql));
} else { } else {
printf("taos connect failed, reason: %s.\n\n", tstrerror(terrno)); printf("connect failed, reason: %s.\n\n", tstrerror(terrno));
} }
taos_free_result(pSql); taos_free_result(pSql);
taos_close(pObj); taos_close(pObj);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册