We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 767df42 commit 129b47dCopy full SHA for 129b47d
src/dispatchers/file.c
@@ -1244,10 +1244,11 @@ ncmpi_inq_file_format(const char *filename,
1244
if (rlen != 8) {
1245
close(fd); /* ignore error */
1246
if (rlen == 0 && errno == 0)
1247
- fprintf(stderr, "Error: empty file %s\n", filename);
+ fprintf(stderr, "Error in %s at %d: empty file %s\n",
1248
+ __func__,__LINE__,filename);
1249
else
- fprintf(stderr, "Error: fail to read signature of file %s\n",
1250
- filename);
+ fprintf(stderr, "Error in %s at %d: fail to read signature of file %s\n",
1251
1252
DEBUG_RETURN_ERROR(NC_EFILE)
1253
}
1254
if (close(fd) == -1) {
0 commit comments