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