Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilCodeZ committed Dec 23, 2024
1 parent 6be6400 commit 2d391a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl PluginManager {
}

unsafe fn load_plugin(path: &Path) -> Result<Plugin, Box<dyn std::error::Error>> {
let library = Library::new(path).unwrap();
let library = Library::new(path)?;
let query_metadata = library.get::<PluginQueryMetadataFunc>(PLUGIN_QUERY_METADATA_SYMBOL_NAME.as_bytes())
.map_err(|e| format!("Failed to get symbol '{}': {}", PLUGIN_QUERY_METADATA_SYMBOL_NAME, e))?;
let entry_point = library.get::<PluginEntryPointFunc>(PLUGIN_ENTRY_POINT_SYMBOL_NAME.as_bytes())
Expand Down

0 comments on commit 2d391a5

Please sign in to comment.