gofmt error log removed
This commit is contained in:
parent
0875e3c5f9
commit
69f38c899b
|
@ -171,9 +171,9 @@ func (p *Project) build() {
|
||||||
// Build calls an implementation of the "gofmt"
|
// Build calls an implementation of the "gofmt"
|
||||||
func (p *Project) fmt(path string) error {
|
func (p *Project) fmt(path string) error {
|
||||||
if p.Fmt {
|
if p.Fmt {
|
||||||
if msg, err := p.GoFmt(path); err != nil {
|
if _, err := p.GoFmt(path); err != nil {
|
||||||
log.Println(pname(p.Name, 1), Red("There are some errors in "), Red(path), Red(":"))
|
log.Println(pname(p.Name, 1), Red("There are some GoFmt errors in "), ":", Magenta(path))
|
||||||
fmt.Println(msg)
|
//fmt.Println(msg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue