Skip to content

Commit 0f93050

Browse files
Update feedback/feedback.go
Co-authored-by: Luca Rinaldi <lucarin@protonmail.com>
1 parent ff3092d commit 0f93050

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

feedback/feedback.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,11 @@ func Print(v string) {
154154

155155
// Warning outputs a warning message.
156156
func Warning(msg string) {
157-
fmt.Fprintln(feedbackErr, msg)
157+
if format == Text {
158+
fmt.Fprintln(feedbackErr, msg)
159+
} else {
160+
bufferWarnings = append(bufferWarnings, msg)
161+
}
158162
}
159163

160164
// FatalError outputs the error and exits with status exitCode.

0 commit comments

Comments
 (0)