From 1ec2c0807e88884b96ea213204557901fd22c861 Mon Sep 17 00:00:00 2001 From: Audree Steinberg Date: Mon, 31 Jan 2022 23:35:46 -0800 Subject: [PATCH] Add new line after error (#5124) * Add new line * Fix syntax for adding new line * Add `\n` to another error --- cmd/gh/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/gh/main.go b/cmd/gh/main.go index 10cd94c2e..80e9409f2 100644 --- a/cmd/gh/main.go +++ b/cmd/gh/main.go @@ -145,7 +145,7 @@ func mainRun() exitCode { if errors.As(err, &execError) { return exitCode(execError.ExitCode()) } - fmt.Fprintf(stderr, "failed to run external command: %s", err) + fmt.Fprintf(stderr, "failed to run external command: %s\n", err) return exitError } @@ -157,7 +157,7 @@ func mainRun() exitCode { if errors.As(err, &execError) { return exitCode(execError.ExitCode()) } - fmt.Fprintf(stderr, "failed to run extension: %s", err) + fmt.Fprintf(stderr, "failed to run extension: %s\n", err) return exitError } else if found { return exitOK