File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -97,12 +97,14 @@ var (
97
97
// fail prints message to stdout, it's mainly used for git serv and git hook commands.
98
98
// The output will be passed to git client and shown to user.
99
99
func fail (ctx context.Context , userMessage , logMsgFmt string , args ... interface {}) error {
100
- // There appears to be a chance to cause a zombie process and failure to read the Exit status
101
- // if nothing is outputted on stdout.
102
100
if userMessage == "" {
103
101
userMessage = "Internal Server Error (no user message)"
104
102
}
105
- _ , _ = fmt .Fprintf (os .Stdout , "\n Gitea: %s\n " , userMessage )
103
+
104
+ // There appears to be a chance to cause a zombie process and failure to read the Exit status
105
+ // if nothing is outputted on stdout.
106
+ _ , _ = fmt .Fprintln (os .Stdout , "" )
107
+ _ , _ = fmt .Fprintln (os .Stderr , "Gitea:" , userMessage )
106
108
107
109
if logMsgFmt != "" {
108
110
logMsg := fmt .Sprintf (logMsgFmt , args ... )
You can’t perform that action at this time.
0 commit comments