From: Nikolaj Schumacher Date: Thu, 7 May 2009 10:53:54 +0000 (+0200) Subject: Show eclim error message. X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/3b8f231cc24be0814b3eaea14d2115bafe78f9cd?ds=sidebyside Show eclim error message. --- diff --git a/company-eclim.el b/company-eclim.el index 96573e3f6..370444e95 100644 --- a/company-eclim.el +++ b/company-eclim.el @@ -62,12 +62,14 @@ eclim can only complete correctly when the buffer has been saved." lines)) (defun company-eclim--call-process (&rest args) - (let ((coding-system-for-read 'utf-8)) + (let ((coding-system-for-read 'utf-8) + res) (with-temp-buffer - (if (= 0 (apply 'call-process company-eclim-executable nil t nil - "-command" args)) + (if (= 0 (setq res (apply 'call-process company-eclim-executable nil t nil + "-command" args))) (company-eclim--buffer-lines) - (message "Company-eclim command failed") + (message "Company-eclim command failed with error %d:\n%s" res + (buffer-substring (point-min) (point-max))) nil)))) (defun company-eclim--project-list ()