gofmt error log removed

This commit is contained in:
alessio 2016-08-24 16:20:49 +02:00
parent 0875e3c5f9
commit 69f38c899b
1 changed files with 3 additions and 3 deletions

View File

@ -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