aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nov.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/nov.el b/nov.el
index 055ad87..9ab75b1 100644
--- a/nov.el
+++ b/nov.el
@@ -800,6 +800,8 @@ Saving is only done if `nov-save-place-file' is set."
(add-hook 'change-major-mode-hook 'nov-clean-up nil t)
(when (not buffer-file-name)
(error "EPUB must be associated with file"))
+ (when (not nov-unzip-program)
+ (error "unzip executable not found, customize `nov-unzip-program'"))
(setq nov-temp-dir (make-temp-file "nov-" t ".epub"))
(let ((exit-code (nov-unzip-epub nov-temp-dir buffer-file-name)))
(when (not (integerp exit-code))