mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-07 18:33:09 +02:00
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:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user