Skip to content

Commit e4852b1

Browse files
committed
Make feedback.Error*() print to stderr
1 parent d6e0950 commit e4852b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

result/feedback/feedback.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package feedback
1818

1919
import (
2020
"fmt"
21+
"os"
2122

2223
"github.com/arduino/arduino-check/configuration"
2324
"github.com/arduino/arduino-check/result/outputformat"
@@ -55,6 +56,6 @@ func Errorf(format string, v ...interface{}) {
5556

5657
// Error behaves like fmt.Print but also logs the error.
5758
func Error(errorMessage string) {
58-
fmt.Printf(errorMessage)
59+
fmt.Fprint(os.Stderr, errorMessage)
5960
logrus.Error(fmt.Sprint(errorMessage))
6061
}

0 commit comments

Comments
 (0)