]> code.delx.au - gnu-emacs-elpa/commitdiff
Show eclim error message.
authorNikolaj Schumacher <git@nschum.de>
Thu, 7 May 2009 10:53:54 +0000 (12:53 +0200)
committerNikolaj Schumacher <git@nschum.de>
Thu, 7 May 2009 13:13:36 +0000 (15:13 +0200)
company-eclim.el

index 96573e3f61e27b739100d82aa79869fae2b9cd68..370444e952df50b66904700517aee4d587188280 100644 (file)
@@ -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 ()