diff options
author | Vasilij Schneidermann <mail@vasilij.de> | 2018-01-15 23:06:59 +0100 |
---|---|---|
committer | Vasilij Schneidermann <mail@vasilij.de> | 2018-01-15 23:06:59 +0100 |
commit | 09da13ab7dee143d519e1b4c51d207e8d934a0c1 (patch) | |
tree | 0f69500063d1b789cfa489ab99df5ff0951ffd58 /nov.el | |
parent | d05f1ae5a2c9a058323e0524075b5039c3ec1a88 (diff) |
Error out on invalid mimetypes
Diffstat (limited to 'nov.el')
-rw-r--r-- | nov.el | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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." |