input/InputStream: migrate from class Error to C++ exceptions
This commit is contained in:
@@ -68,8 +68,12 @@ public:
|
||||
} catch (const std::runtime_error &) {
|
||||
return false;
|
||||
}
|
||||
} else
|
||||
is->LockRewind(IgnoreError());
|
||||
} else {
|
||||
try {
|
||||
is->LockRewind();
|
||||
} catch (const std::runtime_error &) {
|
||||
}
|
||||
}
|
||||
|
||||
/* now try the stream_tag() method */
|
||||
return plugin.ScanStream(*is, handler, handler_ctx);
|
||||
|
Reference in New Issue
Block a user