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:
@@ -167,7 +167,7 @@ func writeCronEntries() error {
|
|||||||
command.ShowOutput = false
|
command.ShowOutput = false
|
||||||
out, err := command.CombinedOutput()
|
out, err := command.CombinedOutput()
|
||||||
if err != nil {
|
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")
|
common.LogInfo1("Updated schedule file")
|
||||||
|
|||||||
Reference in New Issue
Block a user