Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorbogem <albertnigma@gmail.com>2016-11-22 01:00:44 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-11-23 11:13:00 +0300
commite81c06c3f0a6f9a960d91b31960e48a807112655 (patch)
tree21d771cf673370736111ba48f646c093563353d7 /source
parent647540d0ef9819c35819715f1f35198f05e5409e (diff)
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
Diffstat (limited to 'source')
-rw-r--r--source/filesystem.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/filesystem.go b/source/filesystem.go
index 5b47b7abf..7873b47f1 100644
--- a/source/filesystem.go
+++ b/source/filesystem.go
@@ -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.")
}
}