mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
helpers: Rename WalkRootTooShortError to ErrWalkRootTooShort
Fix golint warning: helpers/path.go:473:5: error var WalkRootTooShortError should have name of the form ErrFoo See #2014
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
647540d0ef
commit
e81c06c3f0
@@ -105,7 +105,7 @@ func (f *Filesystem) captureFiles() {
|
||||
|
||||
if err != nil {
|
||||
jww.ERROR.Println(err)
|
||||
if err == helpers.WalkRootTooShortError {
|
||||
if err == helpers.ErrWalkRootTooShort {
|
||||
panic("The root path is too short. If this is a test, make sure to init the content paths.")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user