Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 87e4048971b..05fdb500d9e 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -286,8 +286,8 @@ void WM_read_file(bContext *C, char *name, ReportList *reports)
else if(retval==1)
BKE_write_undo(C, "Import file");
else if(retval == -1) {
- if(reports && reports->list.first == NULL)
- BKE_report(reports, RPT_ERROR, "Cannot read file.");
+ if(reports)
+ BKE_reportf(reports, RPT_ERROR, "Can't read file \"%s\".", name);
}
}