fix(host-deployer): add deploy telegraf error info

This commit is contained in:
wanyaoqi
2022-11-03 20:40:28 +08:00
parent 5ffe1c3506
commit d29be7d253
+1 -1
View File
@@ -658,7 +658,7 @@ func (d *sLinuxRootFs) DeployTelegraf(config string) (bool, error) {
fmt.Sprintf("(crontab -l 2>/dev/null; echo '%s') |crontab -", cronJob),
).Output()
if err != nil {
return false, errors.Wrapf(err, "add crontab")
return false, errors.Wrapf(err, "add crontab %s", output)
}
return true, nil
}