Merge pull request #3073 from taosdata/feature/os

TD-1057 not show error if create file failed
This commit is contained in:
Shengliang Guan 2020-08-14 20:36:19 +08:00 committed by GitHub
commit afd940d903
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}