diff options
author | Eriks Sneiders <eriks.sneiders@zabbix.com> | 2022-03-24 16:51:58 +0300 |
---|---|---|
committer | Eriks Sneiders <eriks.sneiders@zabbix.com> | 2022-03-31 17:47:14 +0300 |
commit | 9803b0466a3890d4c0a1b329c4c91d8e9aa32514 (patch) | |
tree | a56824b722feff4d4582da07596282ca01321955 /src/go/plugins | |
parent | 1e1762d5430de2dc227ce54c8bad8e523ad5a6a4 (diff) |
...G...... [ZBXNEXT-7559] code clean up
Diffstat (limited to 'src/go/plugins')
-rw-r--r-- | src/go/plugins/smart/smartfs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/plugins/smart/smartfs.go b/src/go/plugins/smart/smartfs.go index b36d6dc2c1e..1f194f36c43 100644 --- a/src/go/plugins/smart/smartfs.go +++ b/src/go/plugins/smart/smartfs.go @@ -258,7 +258,7 @@ func (p *Plugin) execute(jsonRunner bool) (*runner, error) { func (p *Plugin) executeSingle(path string) (device []byte, err error) { device, err = p.executeSmartctl(fmt.Sprintf("-a %s -j", path), false) if err != nil { - return nil, fmt.Errorf("Failed to execute smartctl: %s.", err.Error()) + return nil, fmt.Errorf("Failed to execute smartctl: %w.", err) } return |