feat(plugins): better logging and handling of loading plugins, try to create plugins dir if it does not exist, fixes #3974

This commit is contained in:
Torkel Ödegaard
2016-02-10 11:03:12 +01:00
parent 509b37eb91
commit 257b824d4f
8 changed files with 53 additions and 34 deletions
+4 -2
View File
@@ -11,8 +11,10 @@ func (p *PanelPlugin) Load(decoder *json.Decoder, pluginDir string) error {
return err
}
p.PluginDir = pluginDir
Panels[p.Id] = p
if err := p.registerPlugin(pluginDir); err != nil {
return err
}
Panels[p.Id] = p
return nil
}