summaryrefslogtreecommitdiff
path: root/cmd/pdfbook/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/pdfbook/main.go')
-rw-r--r--cmd/pdfbook/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/pdfbook/main.go b/cmd/pdfbook/main.go
index bdb486d..79db353 100644
--- a/cmd/pdfbook/main.go
+++ b/cmd/pdfbook/main.go
@@ -112,7 +112,10 @@ func main() {
}
pdf := new(bookpipeline.Fpdf)
- pdf.Setup()
+ err = pdf.Setup()
+ if err != nil {
+ log.Fatalln("Failed to set up PDF", err)
+ }
if os.IsNotExist(err) {
err = filepath.Walk(flag.Arg(0), walker(pdf, *colour))