summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-03-12 18:52:35 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-03-12 18:52:35 (GMT)
commit82ee11f5fc5be88baad3e3c7b626b078bda5d915 (patch)
treebbc295fb09be078361d77e74c8b577e33469148c /Swiften/Avatars
parent66ac08ab9a3e323e5257fffebe13aa1ee83f147e (diff)
downloadswift-82ee11f5fc5be88baad3e3c7b626b078bda5d915.zip
swift-82ee11f5fc5be88baad3e3c7b626b078bda5d915.tar.bz2
Avoid warning on end of file in cache files.swift-1.0beta9
Diffstat (limited to 'Swiften/Avatars')
-rw-r--r--Swiften/Avatars/AvatarFileStorage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Avatars/AvatarFileStorage.cpp b/Swiften/Avatars/AvatarFileStorage.cpp
index 62dfdf6..4f76c80 100644
--- a/Swiften/Avatars/AvatarFileStorage.cpp
+++ b/Swiften/Avatars/AvatarFileStorage.cpp
@@ -29,8 +29,8 @@ AvatarFileStorage::AvatarFileStorage(const boost::filesystem::path& avatarsDir,
if (jid.isValid()) {
jidAvatars.insert(std::make_pair(jid, r.first));
}
- else {
- std::cerr << "Invalid entry in avatars file" << std::endl;
+ else if (!r.first.empty() || !r.second.empty()) {
+ std::cerr << "Invalid entry in avatars file: " << r.second << std::endl;
}
}
}