Commit 0126276e authored by Max Kellermann's avatar Max Kellermann

FileCommands: log irregular errors while looking for cover art

parent 58d6ddab
...@@ -37,9 +37,11 @@ ...@@ -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) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment