summaryrefslogtreecommitdiff
path: root/plugins/status/plugin.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-08-31 14:59:28 +0300
committerValery Piashchynski <[email protected]>2021-08-31 14:59:28 +0300
commit31cf040029eb0b26278e4a9948cbc1aba77ed58b (patch)
tree884dd2991acf12826752632b8321410e7cc923ce /plugins/status/plugin.go
parent2f44878a7eac71d7b81e66246b46c615a95892d7 (diff)
Naming: service -> plugin
Fix bug with survived workers in the debug mode Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/status/plugin.go')
-rw-r--r--plugins/status/plugin.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/status/plugin.go b/plugins/status/plugin.go
index 82a0fa6c..b76ad0a3 100644
--- a/plugins/status/plugin.go
+++ b/plugins/status/plugin.go
@@ -85,7 +85,7 @@ func (c *Plugin) status(name string) (Status, error) {
const op = errors.Op("checker_plugin_status")
svc, ok := c.statusRegistry[name]
if !ok {
- return Status{}, errors.E(op, errors.Errorf("no such service: %s", name))
+ return Status{}, errors.E(op, errors.Errorf("no such plugin: %s", name))
}
return svc.Status(), nil
@@ -96,7 +96,7 @@ func (c *Plugin) ready(name string) (Status, error) {
const op = errors.Op("checker_plugin_ready")
svc, ok := c.readyRegistry[name]
if !ok {
- return Status{}, errors.E(op, errors.Errorf("no such service: %s", name))
+ return Status{}, errors.E(op, errors.Errorf("no such plugin: %s", name))
}
return svc.Ready(), nil