Commit 88150935 authored by Nodir Turakulov's avatar Nodir Turakulov Committed by Brad Fitzpatrick

cmd/go: print all warnings to stderr

All warnings in cmd/go are printed using fmt.Fprintf(os.Stderr...)
except one in test.go which is printed using log.Printf.
This is a minor inconsistency.

Change-Id: Ib470d318810b44b86e6cfaa77e9a556a5ad94069
Reviewed-on: https://go-review.googlesource.com/15657
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 65aa2da6
...@@ -13,7 +13,6 @@ import ( ...@@ -13,7 +13,6 @@ import (
"go/doc" "go/doc"
"go/parser" "go/parser"
"go/token" "go/token"
"log"
"os" "os"
"os/exec" "os/exec"
"path" "path"
...@@ -439,7 +438,7 @@ func runTest(cmd *Command, args []string) { ...@@ -439,7 +438,7 @@ func runTest(cmd *Command, args []string) {
} }
for _, p := range testCoverPkgs { for _, p := range testCoverPkgs {
if !used[p.ImportPath] { if !used[p.ImportPath] {
log.Printf("warning: no packages being tested depend on %s", p.ImportPath) fmt.Fprintf(os.Stderr, "warning: no packages being tested depend on %s\n", p.ImportPath)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment