diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2020-05-05 21:22:35 +0300 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2020-05-05 21:22:35 +0300 |
| commit | 7ddcc2159fbca875fc9b387f319dafc3700c2d4f (patch) | |
| tree | 55af73013d50f092fd535a2e155b36a8744df665 | |
| parent | 935232c94d5b0085c28d0d34640e282337fbde07 (diff) | |
mu4e: better error when mu4e-mu-binary is not set
| -rw-r--r-- | mu4e/mu4e-proc.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mu4e/mu4e-proc.el b/mu4e/mu4e-proc.el index 0b4d854..87fc9f8 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))) |
