fix: log the string error and not bytes

Refs #4969
This commit is contained in:
Jose Diaz-Gonzalez
2021-12-07 09:27:07 -05:00
committed by GitHub
parent e0c2e7846a
commit c6f4e4bc14

View File

@@ -167,7 +167,7 @@ func writeCronEntries() error {
command.ShowOutput = false
out, err := command.CombinedOutput()
if err != nil {
return fmt.Errorf("Unable to update schedule file: %v", out)
return fmt.Errorf("Unable to update schedule file: %s", string(out))
}
common.LogInfo1("Updated schedule file")