Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions internal/core/services/plugin_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ func (pm *PluginManager) LoadGoPlugin(name string) (commons.DruidPluginInterface
path = "./druid_" + name
}

// Check if the plugin file exists before attempting to load it
if _, err := os.Stat(path); os.IsNotExist(err) {
return nil, fmt.Errorf("plugin file not found: %s (looked in %s and ./druid_%s)", path, exPath+"/druid_"+name, name)
}

var cmd *exec.Cmd

if os.Getenv("DRUID_DEBUG_PATH") != "" {
Expand Down
Loading