aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasilij Schneidermann <mail@vasilij.de>2022-03-20 11:09:29 +0100
committerVasilij Schneidermann <mail@vasilij.de>2022-03-20 11:09:29 +0100
commitb6ea69a83fef6c4f547da3a4551ebed2cfe436a7 (patch)
treeaa55f09c1c068d24c2d58ace5cec1752723d8fcd
parent0a166007f6430564360c31b5c68fca45a0c610d2 (diff)
Raise error if `nov-unzip-program is unset`
-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))