mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
commands, hugolib, parser, tpl: Use errors.New instead of fmt.Errorf
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
1f130fd692
commit
dec1706ae0
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user