Return result with more error information when opening a shared library fails.
This commit is contained in:
@@ -61,6 +61,14 @@ public:
|
||||
struct ResultError
|
||||
{
|
||||
std::string message;
|
||||
|
||||
ResultError() : message("Unknown error") {}
|
||||
ResultError(const ResultError&) = default;
|
||||
ResultError(ResultError&&) noexcept = default;
|
||||
ResultError(std::string msg) noexcept : message(std::move(msg)) {}
|
||||
|
||||
ResultError& operator=(const ResultError&) = default;
|
||||
ResultError& operator=(ResultError&&) noexcept = default;
|
||||
};
|
||||
|
||||
template<typename TSuccess>
|
||||
|
||||
Reference in New Issue
Block a user