diff options
author | Vasilij Schneidermann <mail@vasilij.de> | 2022-03-20 11:09:29 +0100 |
---|---|---|
committer | Vasilij Schneidermann <mail@vasilij.de> | 2022-03-20 11:09:29 +0100 |
commit | b6ea69a83fef6c4f547da3a4551ebed2cfe436a7 (patch) | |
tree | aa55f09c1c068d24c2d58ace5cec1752723d8fcd /nov.el | |
parent | 0a166007f6430564360c31b5c68fca45a0c610d2 (diff) |
Raise error if `nov-unzip-program is unset`
Diffstat (limited to 'nov.el')
-rw-r--r-- | nov.el | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)) |