X Tutup
Skip to content

Commit 1ec2c08

Browse files
authored
Add new line after error (cli#5124)
* Add new line * Fix syntax for adding new line * Add `\n` to another error
1 parent 6cdb268 commit 1ec2c08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/gh/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func mainRun() exitCode {
145145
if errors.As(err, &execError) {
146146
return exitCode(execError.ExitCode())
147147
}
148-
fmt.Fprintf(stderr, "failed to run external command: %s", err)
148+
fmt.Fprintf(stderr, "failed to run external command: %s\n", err)
149149
return exitError
150150
}
151151

@@ -157,7 +157,7 @@ func mainRun() exitCode {
157157
if errors.As(err, &execError) {
158158
return exitCode(execError.ExitCode())
159159
}
160-
fmt.Fprintf(stderr, "failed to run extension: %s", err)
160+
fmt.Fprintf(stderr, "failed to run extension: %s\n", err)
161161
return exitError
162162
} else if found {
163163
return exitOK

0 commit comments

Comments
 (0)
X Tutup