Merge pull request #4970 from dokku/4969-log-err

Log the string error and not bytes when there is an issue updating the cron schedule
This commit is contained in:
Jose Diaz-Gonzalez
2022-01-15 06:42:18 -05:00
committed by GitHub

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")