Modified the warning in database/DBio.c that says "Cannot open file

for writing!" so that it actually tells you what is the name of the
file that it is trying to write.
This commit is contained in:
Tim Edwards 2020-07-26 10:58:36 -04:00
parent 19dd5638d6
commit 13ab2c3e59
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
8.3.40
8.3.41

View File

@ -2986,7 +2986,7 @@ DBCellWrite(cellDef, fileName)
if (realf == NULL)
{
cellDef->cd_flags |= CDMODIFIED;
TxError("Warning: Cannot open file for writing!\n");
TxError("Warning: Cannot open file \"%s\" for writing!\n", expandname);
}
else
{
@ -2994,7 +2994,7 @@ DBCellWrite(cellDef, fileName)
if (thestat.st_size != DBFileOffset)
{
cellDef->cd_flags |= CDMODIFIED;
TxError("Warning: I/O error in writing file\n");
TxError("Warning: I/O error in writing file \"%s\"\n", expandname);
}
fclose(realf);
}