aboutsummaryrefslogtreecommitdiffhomepage
path: root/commands/convert.go
diff options
context:
space:
mode:
authorbogem <[email protected]>2016-11-18 22:54:57 +0100
committerBjørn Erik Pedersen <[email protected]>2016-11-22 23:43:55 +0100
commitdec1706ae0439bc6241332c6c9e7e6a818a203f0 (patch)
tree648cc18cfdef629c87d389bcd37601355dd77bb2 /commands/convert.go
parent1f130fd69247aa3ae2e08560cd56537b32ef3d80 (diff)
downloadhugo-dec1706ae0439bc6241332c6c9e7e6a818a203f0.tar.gz
hugo-dec1706ae0439bc6241332c6c9e7e6a818a203f0.zip
commands, hugolib, parser, tpl: Use errors.New instead of fmt.Errorf
Diffstat (limited to 'commands/convert.go')
-rw-r--r--commands/convert.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/convert.go b/commands/convert.go
index 56f67f8dc..6e5b5be85 100644
--- a/commands/convert.go
+++ b/commands/convert.go
@@ -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"))