mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
refs #847 Missing cache directory is not an error, just means there is nothing to load.
This commit is contained in:
@@ -397,6 +397,10 @@ namespace BlackMisc
|
||||
|
||||
CStatusMessage CValueCache::loadFromFiles(const QString &dir, const QSet<QString> &keys, const CVariantMap ¤tValues, CValueCachePacket &o_values, const QString &keysMessage) const
|
||||
{
|
||||
if (! QDir(dir).exists())
|
||||
{
|
||||
return CStatusMessage(this).warning("No such directory %1") << dir;
|
||||
}
|
||||
if (! QDir(dir).isReadable())
|
||||
{
|
||||
return CStatusMessage(this).error("Failed to read from directory %1") << dir;
|
||||
|
||||
Reference in New Issue
Block a user