From f855ac70aa1942ce0efeddbd7948547d6e9a2058 Mon Sep 17 00:00:00 2001 From: William Bezuidenhout Date: Mon, 26 Sep 2022 18:32:01 +0200 Subject: [PATCH] output problems to stderr --- cmd/docsite/check.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/docsite/check.go b/cmd/docsite/check.go index 0600faf..e3e017e 100644 --- a/cmd/docsite/check.go +++ b/cmd/docsite/check.go @@ -4,6 +4,7 @@ import ( "context" "flag" "fmt" + "os" ) func init() { @@ -24,7 +25,7 @@ func init() { } if len(problems) > 0 { for _, problem := range problems { - fmt.Println(problem) + fmt.Fprintln(os.Stderr, problem) } return fmt.Errorf("%d problems found", len(problems)) }