aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nov.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/nov.el b/nov.el
index 292c9fc..efb0189 100644
--- a/nov.el
+++ b/nov.el
@@ -212,8 +212,9 @@ If PARSE-XML-P is t, return the contents as parsed by libxml."
(defun nov-epub-valid-p (directory)
"Return t if DIRECTORY makes up a valid EPUB document."
- (and (nov-mimetype-valid-p directory)
- (nov-container-valid-p directory)))
+ (when (not (nov-mimetype-valid-p directory))
+ (message "Invalid mimetype"))
+ (nov-container-valid-p directory))
(defun nov-content-version (content)
"Return the EPUB version for CONTENT."