input/Plugin: migrate open() from class Error to C++ exceptions
This commit is contained in:
+1
-7
@@ -53,13 +53,7 @@ try {
|
||||
Mutex mutex;
|
||||
Cond cond;
|
||||
|
||||
Error error;
|
||||
auto is = OpenLocalInputStream(path, mutex, cond, error);
|
||||
if (!is) {
|
||||
LogError(error);
|
||||
return false;
|
||||
}
|
||||
|
||||
auto is = OpenLocalInputStream(path, mutex, cond);
|
||||
return ScanGenericTags(*is, handler, ctx);
|
||||
} catch (const std::runtime_error &e) {
|
||||
LogError(e);
|
||||
|
||||
Reference in New Issue
Block a user