Skip to content

Commit

Permalink
fix filepath.Walk error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
piranha committed Dec 23, 2013
1 parent cdfddc5 commit 4a378b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion site.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (site *Site) AddPage(path string) {
}

func (site *Site) Collect() {
errors := make(chan error)
errors := make(chan error, 10)

filepath.Walk(site.Source, site.collectFunc(errors))

Expand Down
3 changes: 1 addition & 2 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"fmt"
bf "github.com/russross/blackfriday"
"io"
"log"
"os"
"strings"
"unicode"
Expand All @@ -17,7 +16,7 @@ func errhandle(err error) {
if err == nil {
return
}
log.Fatalf("ERR %s\n", err)
fmt.Printf("Error: %s\n", err)
}

func out(format string, args ...interface{}) {
Expand Down

0 comments on commit 4a378b3

Please sign in to comment.