mirror of
https://github.com/stashapp/stash.git
synced 2025-12-27 18:56:06 +01:00
Fix panic
This commit is contained in:
parent
afd7f02644
commit
7d56f1a093
1 changed files with 1 additions and 1 deletions
|
|
@ -139,10 +139,10 @@ func (c *Cache) ReloadPlugins() {
|
|||
if filepath.Ext(fp) == ".yml" {
|
||||
plugin, err := loadPluginFromYAMLFile(fp)
|
||||
// use case insensitive plugin IDs
|
||||
pluginID := strings.ToLower(plugin.id)
|
||||
if err != nil {
|
||||
logger.Errorf("Error loading plugin %s: %v", fp, err)
|
||||
} else {
|
||||
pluginID := strings.ToLower(plugin.id)
|
||||
if _, exists := pluginIDs[pluginID]; exists {
|
||||
logger.Errorf("Error loading plugin %s: plugin ID %s already exists", fp, plugin.id)
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue