aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasilij Schneidermann <mail@vasilij.de>2018-01-15 23:06:59 +0100
committerVasilij Schneidermann <mail@vasilij.de>2018-01-15 23:06:59 +0100
commit09da13ab7dee143d519e1b4c51d207e8d934a0c1 (patch)
tree0f69500063d1b789cfa489ab99df5ff0951ffd58
parentd05f1ae5a2c9a058323e0524075b5039c3ec1a88 (diff)
Error out on invalid mimetypes
-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."