lang/ruby: show messages when robe throws errors

This commit is contained in:
Henrik Lissner 2018-08-23 16:55:02 +02:00
parent f23960b919
commit c7abe743d1
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -58,7 +58,8 @@
(when (executable-find "ruby")
(cl-letf (((symbol-function #'yes-or-no-p) (lambda (_) t)))
(save-window-excursion
(ignore-errors (robe-start)))
(with-demoted-errors "ROBE ERROR: %s"
(robe-start)))
(when (robe-running-p)
(add-hook 'kill-buffer-hook #'+ruby|cleanup-robe-servers nil t)))))
(add-hook 'enh-ruby-mode-hook #'+ruby|init-robe)