diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2010-07-15 00:52:23 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2010-07-15 00:52:23 +0400 |
commit | ad12866e1947f6723e0b6111f67cdabdbed33538 (patch) | |
tree | 030666acbce955a2f4c0bf98b6dbeb5f679dd0cb /source/blender/blenloader | |
parent | dd3f9cff91be36c48d24a3d6124727ea83234a1c (diff) |
To be actually useful, also report the filename when write operation fails.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 82d46a84bdd..ed471117bdd 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -2481,7 +2481,7 @@ int BLO_write_file(Main *mainvar, char *dir, int write_flags, ReportList *report file = open(tempname,O_BINARY+O_WRONLY+O_CREAT+O_TRUNC, 0666); if(file == -1) { - BKE_reportf(reports, RPT_ERROR, "Can't open file for writing: %s.", strerror(errno)); + BKE_reportf(reports, RPT_ERROR, "Can't open file %s for writing: %s.", tempname, strerror(errno)); return 0; } |