From c6f4e4bc144fc669bd25278751b702c01b6054f9 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 7 Dec 2021 09:27:07 -0500 Subject: [PATCH] fix: log the string error and not bytes Refs #4969 --- plugins/cron/functions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/cron/functions.go b/plugins/cron/functions.go index f09192b3f..ebdd7fb61 100644 --- a/plugins/cron/functions.go +++ b/plugins/cron/functions.go @@ -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")