separate error message
This commit is contained in:
parent
7a656bb3aa
commit
2153d8ec20
1 changed files with 6 additions and 3 deletions
7
smog.el
7
smog.el
|
@ -130,9 +130,12 @@ Further details can be found in the =style(1)= man page.\n"
|
||||||
|
|
||||||
(defun smog--style-installed-p ()
|
(defun smog--style-installed-p ()
|
||||||
"Is the style command installed?"
|
"Is the style command installed?"
|
||||||
|
(let ((program "style"))
|
||||||
|
(unless (executable-find program)
|
||||||
|
(message "The program 'style' isn't installed or can't be found."))
|
||||||
(eq 0 (condition-case nil
|
(eq 0 (condition-case nil
|
||||||
(call-process "style")
|
(call-process program)
|
||||||
(error (message "The program 'style' isn't installed or can't be found.")))))
|
(error (message "The program 'style' test run exit abnormally."))))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun smog-check-buffer ()
|
(defun smog-check-buffer ()
|
||||||
|
|
Loading…
Reference in a new issue