Commit 68c14d1e authored by Max Kellermann's avatar Max Kellermann

test/read_tags: catch exceptions from ScanFile() before falling back to ScanStream()

parent 48089394
......@@ -101,7 +101,14 @@ try {
return EXIT_FAILURE;
}
bool success = plugin->ScanFile(path, print_handler, nullptr);
bool success;
try {
success = plugin->ScanFile(path, print_handler, nullptr);
} catch (const std::exception &e) {
LogError(e);
success = false;
}
if (!success && plugin->scan_stream != NULL) {
Mutex mutex;
Cond cond;
......
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