summaryrefslogtreecommitdiff
path: root/imageloader.c
diff options
context:
space:
mode:
Diffstat (limited to 'imageloader.c')
-rw-r--r--imageloader.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/imageloader.c b/imageloader.c
index f83d9675..27aae363 100644
--- a/imageloader.c
+++ b/imageloader.c
@@ -121,12 +121,14 @@ void cImageLoader::toLowerCase(std::string &str) {
}
bool cImageLoader::LoadImage(cString FileName, cString Path, cString Extension) {
+ cString File = "";
try {
- cString File = cString::sprintf("%s%s.%s", *Path, *FileName, *Extension);
+ File = cString::sprintf("%s%s.%s", *Path, *FileName, *Extension);
//dsyslog("imageloader: trying to load: %s", *File);
buffer.read(*File);
//dsyslog("imageloader: %s sucessfully loaded", *File);
- } catch (...) {
+ } catch (...) {
+ dsyslog("imageloader: %s could not be loaded", *File);
return false;
}
return true;