diff --git a/cmd/executor/cmd/root.go b/cmd/executor/cmd/root.go index 90bf63a15b..18494b9106 100644 --- a/cmd/executor/cmd/root.go +++ b/cmd/executor/cmd/root.go @@ -454,7 +454,7 @@ func exit(err error) { // exits with the given error and exit code func exitWithCode(err error, exitCode int) { - fmt.Println(err) + fmt.Fprintln(os.Stderr, err) os.Exit(exitCode) }