From 69f38c899b807b4b89607fabeb5d9a81cbb3da69 Mon Sep 17 00:00:00 2001 From: alessio Date: Wed, 24 Aug 2016 16:20:49 +0200 Subject: [PATCH] gofmt error log removed --- realize/watcher.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/realize/watcher.go b/realize/watcher.go index ed4d778..9620404 100644 --- a/realize/watcher.go +++ b/realize/watcher.go @@ -171,9 +171,9 @@ func (p *Project) build() { // Build calls an implementation of the "gofmt" func (p *Project) fmt(path string) error { if p.Fmt { - if msg, err := p.GoFmt(path); err != nil { - log.Println(pname(p.Name, 1), Red("There are some errors in "), Red(path), Red(":")) - fmt.Println(msg) + if _, err := p.GoFmt(path); err != nil { + log.Println(pname(p.Name, 1), Red("There are some GoFmt errors in "), ":", Magenta(path)) + //fmt.Println(msg) } } return nil