summaryrefslogtreecommitdiffstats
path: root/src/ui/edit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/edit.cpp')
-rw-r--r--src/ui/edit.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/edit.cpp b/src/ui/edit.cpp
index 271a8e7..67ed6a1 100644
--- a/src/ui/edit.cpp
+++ b/src/ui/edit.cpp
@@ -1466,7 +1466,10 @@ bool CEdit::ReadText(std::string filename, int addSize)
}
file = fopen(fs::path(path).make_preferred().string().c_str(), "rb");
- if ( file == NULL ) return false;
+ if ( file == NULL ) {
+ CLogger::GetInstancePointer()->Error("Unable to read text from file \"%s\"\n", path.c_str());
+ return false;
+ }
fseek(file, 0, SEEK_END);
len = ftell(file);