FileCommands: log irregular errors while looking for cover art
This commit is contained in:
@@ -37,9 +37,11 @@
|
|||||||
#include "fs/FileInfo.hxx"
|
#include "fs/FileInfo.hxx"
|
||||||
#include "fs/DirectoryReader.hxx"
|
#include "fs/DirectoryReader.hxx"
|
||||||
#include "input/InputStream.hxx"
|
#include "input/InputStream.hxx"
|
||||||
|
#include "input/Error.hxx"
|
||||||
#include "LocateUri.hxx"
|
#include "LocateUri.hxx"
|
||||||
#include "TimePrint.hxx"
|
#include "TimePrint.hxx"
|
||||||
#include "thread/Mutex.hxx"
|
#include "thread/Mutex.hxx"
|
||||||
|
#include "Log.hxx"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <inttypes.h> /* for PRIu64 */
|
#include <inttypes.h> /* for PRIu64 */
|
||||||
@@ -257,6 +259,9 @@ find_stream_art(const char *directory, Mutex &mutex)
|
|||||||
try {
|
try {
|
||||||
return InputStream::OpenReady(art_file.c_str(), mutex);
|
return InputStream::OpenReady(art_file.c_str(), mutex);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
auto e = std::current_exception();
|
||||||
|
if (!IsFileNotFound(e))
|
||||||
|
LogError(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
Reference in New Issue
Block a user