aboutsummaryrefslogtreecommitdiffstats
path: root/yeetube-mpv.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-10-03 05:55:17 +0300
committerThanos Apollo <[email protected]>2023-10-03 05:55:17 +0300
commit6c7657e90d273dda34865e71120681245dab36e4 (patch)
tree48f4500460b90c5de2e715c02dd15b6e777a954d /yeetube-mpv.el
parent80bff4a031206443716145eeaab71192dad66378 (diff)
yeetube-mpv: Add errors
Display error message "Mpv not found. Install mpv or change the value of yeetube-player" if yeetube-mpv-path is nil
Diffstat (limited to 'yeetube-mpv.el')
-rw-r--r--yeetube-mpv.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/yeetube-mpv.el b/yeetube-mpv.el
index 0dd72a9..08d7f86 100644
--- a/yeetube-mpv.el
+++ b/yeetube-mpv.el
@@ -40,6 +40,8 @@
(defun yeetube-mpv-process (command)
"Start yeetube process for shell COMMAND."
+ (unless yeetube-mpv-path
+ (error "Mpv not found. Install mpv or change the value of yeetube-player"))
(let ((yeetube-mpv-process "yeetube"))
(dolist (process (process-list))
(when (string-match yeetube-mpv-process (process-name process))