Issue when downloading epub for book with no content
Expected behavior
If I play with the exporter before my book has content, I shouldn't get confusing error messages when I do actions which the system allows.
Current behavior
While when trying to download the EPUB for a book that has no chapters you get the following error in UI "There is something wrong with the export process. You will be redirected back to the editor. Please contact your admin"
Steps to reproduce
[Provide a link to a live example or screenshots, and the steps to reproduce this bug]
- Create a book by clicking
Start writing your book
in dashboard - Add the title and then you will be in the Producer Page
- In Producer Page go to
Preview & Export
without adding any chapters to the book - Try to download the PDF and EPUB for the book
- See for Epub you get an error as above
Environment
[Provide browser name and version and if you're working from a PC or Mac]
Possible solution
Customise the error message to say "You must add content to your book before a valid Epub can be produced", alternatively prevent download of Epub when book has no content but the first option is preferred