diff options
Diffstat (limited to 'hugolib/summary.go')
-rw-r--r-- | hugolib/summary.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hugolib/summary.go b/hugolib/summary.go index 1053e1975..3b1aa6b39 100644 --- a/hugolib/summary.go +++ b/hugolib/summary.go @@ -2,9 +2,10 @@ package hugolib import ( "bytes" - "fmt" "os/exec" "strings" + + jww "github.com/spf13/jwalterweatherman" ) var summaryLength = 70 @@ -62,7 +63,7 @@ func getRstContent(content []byte) string { var out bytes.Buffer cmd.Stdout = &out if err := cmd.Run(); err != nil { - fmt.Println(err) + jww.ERROR.Println(err) } rstLines := strings.Split(out.String(), "\n") |