err msg swapped

This commit is contained in:
alessio 2016-08-21 20:31:34 +02:00
parent d4dc21217f
commit 35523e2603
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ func (p *Project) build() {
// Build call an implementation of the "gofmt" // Build call an implementation of the "gofmt"
func (p *Project) fmt() error { func (p *Project) fmt() error {
if p.Fmt { if p.Fmt {
if err, msg := p.GoFmt(); err != nil { if msg, err := p.GoFmt(); err != nil {
log.Println(pname(p.Name, 1), Red("There are some errors:")) log.Println(pname(p.Name, 1), Red("There are some errors:"))
fmt.Println(msg) fmt.Println(msg)
return err return err