未验证 提交 afd940d9 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #3073 from taosdata/feature/os

TD-1057 not show error if create file failed
......@@ -751,7 +751,9 @@ void read_history() {
FILE *f = fopen(f_history, "r");
if (f == NULL) {
#ifndef WINDOWS
fprintf(stderr, "Failed to open file %s\n", f_history);
#endif
return;
}
......@@ -776,7 +778,9 @@ void write_history() {
FILE *f = fopen(f_history, "w");
if (f == NULL) {
#ifndef WINDOWS
fprintf(stderr, "Failed to open file %s for write\n", f_history);
#endif
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册