From b6ea69a83fef6c4f547da3a4551ebed2cfe436a7 Mon Sep 17 00:00:00 2001 From: Vasilij Schneidermann Date: Sun, 20 Mar 2022 11:09:29 +0100 Subject: Raise error if `nov-unzip-program is unset` --- nov.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nov.el') 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)) -- cgit v1.2.3