Skip to content

Commit fcdff48

Browse files
authored
add comment for empty lines
1 parent 5a5a96c commit fcdff48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/serv.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ func fail(ctx context.Context, userMessage, logMsgFmt string, args ...any) error
104104
// There appears to be a chance to cause a zombie process and failure to read the Exit status
105105
// if nothing is outputted on stdout.
106106
_, _ = fmt.Fprintln(os.Stdout, "")
107+
// add extra empty lines to separate our message from other git errors to get more attention
107108
_, _ = fmt.Fprintln(os.Stderr, "error:")
108109
_, _ = fmt.Fprintln(os.Stderr, "error:", userMessage)
109110
_, _ = fmt.Fprintln(os.Stderr, "error:")

0 commit comments

Comments
 (0)