From 7ddcc2159fbca875fc9b387f319dafc3700c2d4f Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 5 May 2020 21:22:35 +0300 Subject: [PATCH] mu4e: better error when mu4e-mu-binary is not set --- mu4e/mu4e-proc.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mu4e/mu4e-proc.el b/mu4e/mu4e-proc.el index 0b4d854b..87fc9f8e 100644 --- a/mu4e/mu4e-proc.el +++ b/mu4e/mu4e-proc.el @@ -246,8 +246,11 @@ Start the process if needed." (defun mu4e~proc-start () "Start the mu server process." - (unless (file-executable-p mu4e-mu-binary) - (mu4e-error (format "`mu4e-mu-binary' (%S) not found" mu4e-mu-binary))) + (unless (and mu4e-mu-binary (file-executable-p mu4e-mu-binary)) + (mu4e-error + (format + "`mu4e-mu-binary' (%S) not found; please set to the path to the mu executable" + mu4e-mu-binary))) (let* ((process-connection-type nil) ;; use a pipe (args (when mu4e-mu-home `(,(format"--muhome=%s" mu4e-mu-home)))) (args (cons "server" args)))