commands, hugolib, parser, tpl: Use errors.New instead of fmt.Errorf

This commit is contained in:
bogem 2016-11-18 22:54:57 +01:00 committed by Bjørn Erik Pedersen
parent 1f130fd692
commit dec1706ae0
6 changed files with 18 additions and 18 deletions

View file

@ -14,6 +14,7 @@
package commands
import (
"errors"
"fmt"
"path/filepath"
"time"
@ -100,7 +101,7 @@ func convertContents(mark rune) (err error) {
panic("site.Source not set")
}
if len(site.Source.Files()) < 1 {
return fmt.Errorf("No source files found")
return errors.New("No source files found")
}
contentDir := helpers.AbsPathify(viper.GetString("contentDir"))