diff options
-rw-r--r-- | cmd/rescribe/main.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go index 67ae8a7..a743ef2 100644 --- a/cmd/rescribe/main.go +++ b/cmd/rescribe/main.go @@ -622,12 +622,12 @@ func uploadbook(ctx context.Context, dir string, name string, conn Pipeliner, no func downloadbook(dir string, name string, conn Pipeliner) error { err := pipeline.DownloadBestPages(dir, name, conn) if err != nil { - return fmt.Errorf("Error downloading best pages: %v", err) + return fmt.Errorf("No images found") } - err1 := pipeline.DownloadBestPngs(dir, name, conn) - if err1 != nil { - return fmt.Errorf("Error downloading best pngs: %v", err) + err = pipeline.DownloadBestPngs(dir, name, conn) + if err != nil { + return fmt.Errorf("No images found") } err = pipeline.DownloadPdfs(dir, name, conn) |