cache: output the build info message on stderr to avoid breaking scripts

Michael Muré created

Change summary

cache/repo_cache.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

cache/repo_cache.go 🔗

@@ -194,7 +194,7 @@ func cacheFilePath(repo repository.Repo) string {
 }
 
 func (c *RepoCache) buildCache() error {
-	fmt.Printf("Building bug cache... ")
+	_, _ = fmt.Fprintf(os.Stderr, "Building bug cache... ")
 
 	c.excerpts = make(map[string]*BugExcerpt)
 
@@ -209,7 +209,7 @@ func (c *RepoCache) buildCache() error {
 		c.excerpts[b.Bug.Id()] = NewBugExcerpt(b.Bug, &snap)
 	}
 
-	fmt.Println("Done.")
+	_, _ = fmt.Fprintln(os.Stderr, "Done.")
 	return nil
 }