1 parent
4fca5523f6
commit
fa30098129
5 files changed
+59
No files matched your search
@@ -243,9 +243,13 @@ std::expected<void, LoadError> PluginLoader::reload()
|
||||
try {
|
||||
next.plugin_->on_load();
|
||||
} catch (...) {
|
||||
std::error_code ec;
|
||||
std::filesystem::remove(tmp, ec);
|
||||
return std::unexpected{LoadError::ActivationFailed};
|
||||
}
|
||||
if (next.ready_ && next.ready_(next.plugin_) != 0) {
|
||||
std::error_code ec;
|
||||
std::filesystem::remove(tmp, ec);
|
||||
return std::unexpected{LoadError::ActivationFailed};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user