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

@@ -1085,7 +1085,7 @@ func (s *Site) absPublishDir() string {
func (s *Site) checkDirectories() (err error) {
if b, _ := helpers.DirExists(s.absContentDir(), hugofs.Source()); !b {
return fmt.Errorf("No source directory found, expecting to find it at " + s.absContentDir())
return errors.New("No source directory found, expecting to find it at " + s.absContentDir())
}
return
}