未验证 提交 00b9c04d 编写于 作者: Y Yang Zhao 提交者: GitHub

[TD-1027]<fix>taosdemo query show error message (#8360)

上级 5ce0bd84
......@@ -3857,8 +3857,8 @@ static int getChildNameOfSuperTableWithLimitAndOffset(TAOS * taos,
if (code != 0) {
taos_free_result(res);
taos_close(taos);
errorPrint2("%s() LN%d, failed to run command %s\n",
__func__, __LINE__, command);
errorPrint2("%s() LN%d, failed to run command %s, reason: %s\n",
__func__, __LINE__, command, taos_errstr(res));
exit(EXIT_FAILURE);
}
......@@ -3937,7 +3937,7 @@ static int getSuperTableFromServer(TAOS * taos, char* dbName,
res = taos_query(taos, command);
int32_t code = taos_errno(res);
if (code != 0) {
printf("failed to run command %s\n", command);
printf("failed to run command %s, reason: %s\n", command, taos_errstr(res));
taos_free_result(res);
return -1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册