diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/checker/plugin.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/checker/plugin.go b/plugins/checker/plugin.go index c72cc615..e6250697 100644 --- a/plugins/checker/plugin.go +++ b/plugins/checker/plugin.go @@ -30,8 +30,13 @@ func (c *Plugin) Init(log log.Logger, cfg config.Configurer) error { const op = errors.Op("status plugin init") err := cfg.UnmarshalKey(PluginName, &c.cfg) if err != nil { - return errors.E(op, err) + return errors.E(op, errors.Disabled, err) + } + + if c.cfg == nil { + return errors.E(errors.Disabled) } + c.registry = make(map[string]status.Checker) c.log = log return nil |