diff options
Diffstat (limited to 'cmd/pdfbook')
-rw-r--r-- | cmd/pdfbook/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/pdfbook/main.go b/cmd/pdfbook/main.go index 3fdcc67..56f981d 100644 --- a/cmd/pdfbook/main.go +++ b/cmd/pdfbook/main.go @@ -82,6 +82,9 @@ func addBest(dir string, pdf Pdfer, colour, smaller bool) error { // the pdf for each one. func walker(pdf Pdfer, colour, smaller bool) filepath.WalkFunc { return func(fpath string, info os.FileInfo, err error) error { + if err != nil { + return err + } if info.IsDir() { return nil } |