diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-07-22 00:34:17 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-07-22 00:35:09 +0200 |
commit | 062510cf1f7b79aed2efe88c5b9340d009bdec0e (patch) | |
tree | f12574dd3bea39ec02986564a8a34ec5f706cd47 /commands/hugo.go | |
parent | 4e1d0cd9f1d43d133d669a019a84117cadd41955 (diff) |
Get rid of the utils package
Diffstat (limited to 'commands/hugo.go')
-rw-r--r-- | commands/hugo.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index 980189c47..312767499 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -43,7 +43,6 @@ import ( "github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/hugolib" "github.com/gohugoio/hugo/livereload" - "github.com/gohugoio/hugo/utils" "github.com/gohugoio/hugo/watcher" "github.com/spf13/afero" "github.com/spf13/cobra" @@ -351,7 +350,7 @@ func (c *commandeer) build() error { c.Logger.FEEDBACK.Println("Watching for changes in", c.hugo.PathSpec.AbsPathify(c.Cfg.GetString("contentDir"))) c.Logger.FEEDBACK.Println("Press Ctrl+C to stop") watcher, err := c.newWatcher(watchDirs...) - utils.CheckErr(c.Logger, err) + checkErr(c.Logger, err) defer watcher.Close() var sigs = make(chan os.Signal) @@ -813,7 +812,7 @@ func (c *commandeer) newWatcher(dirList ...string) (*watcher.Batcher, error) { c.Logger.FEEDBACK.Printf("Syncing all static files\n") _, err := c.copyStatic() if err != nil { - utils.StopOnErr(c.Logger, err, "Error copying static files to publish dir") + stopOnErr(c.Logger, err, "Error copying static files to publish dir") } } else { if err := staticSyncer.syncsStaticEvents(staticEvents); err != nil { |