diff options
author | Valery Piashchynski <[email protected]> | 2021-01-19 16:47:15 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-01-19 16:47:15 +0300 |
commit | 26f9d35e18ef79d79a5609c6c68f1b6ad38c7aed (patch) | |
tree | dd6224660ffd0dcefe2332807203ee1eaf6697b4 /plugins/resetter | |
parent | 75ebbaac89ce8ebc3ab8de47b16e137844cfcd8a (diff) |
Uniform all errors operations
Add new ExecTTL event
Update tests
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/resetter')
-rw-r--r-- | plugins/resetter/plugin.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/resetter/plugin.go b/plugins/resetter/plugin.go index 5d294086..611cb363 100644 --- a/plugins/resetter/plugin.go +++ b/plugins/resetter/plugin.go @@ -14,7 +14,7 @@ type Plugin struct { } func (p *Plugin) ResetAll() error { - const op = errors.Op("reset all") + const op = errors.Op("resetter_plugin_reset_all") for name := range p.registry { err := p.registry[name].Reset() if err != nil { @@ -25,7 +25,7 @@ func (p *Plugin) ResetAll() error { } func (p *Plugin) ResetByName(plugin string) error { - const op = errors.Op("reset by name") + const op = errors.Op("resetter_plugin_reset_by_name") if plugin, ok := p.registry[plugin]; ok { return plugin.Reset() } |